Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » No FrameworkStartLevel service in Indigo?
No FrameworkStartLevel service in Indigo? [message #687673] Thu, 23 June 2011 01:26 Go to next message
Eric Jain is currently offline Eric Jain
Messages: 266
Registered: July 2009
Senior Member
Looks like the StartLevel service was deprecated in OSGi 4.3 (and therefore Eclipse 3.7) and replaced with a FrameworkStartLevel service, but I don't see this service, only the deprecated StartLevel?
Re: No FrameworkStartLevel service in Indigo? [message #687785 is a reply to message #687673] Thu, 23 June 2011 08:31 Go to previous messageGo to next message
BJ Hargrave is currently offline BJ Hargrave
Messages: 55
Registered: July 2009
Member
If you look at the documentation for the FrameworkStartLevel type, you will see that you need to adapt the system bundle to get the FrameworkStartLevel type. FrameworkStartLevel is not a service.
Re: No FrameworkStartLevel service in Indigo? [message #688011 is a reply to message #687785] Thu, 23 June 2011 17:16 Go to previous message
Eric Jain is currently offline Eric Jain
Messages: 266
Registered: July 2009
Senior Member
BJ Hargrave wrote on Thu, 23 June 2011 04:31
If you look at the documentation for the FrameworkStartLevel type, you will see that you need to adapt the system bundle to get the FrameworkStartLevel type. FrameworkStartLevel is not a service.


Thanks!

For the record:

public void setStartLevel(BundleContext context, int startLevel) {
  context.getBundle(0).adapt(FrameworkStartLevel.class).setStartLevel(startLevel);
}

Previous Topic:Newbie on Equinox and OSGI: Tutorial for swing based applications not using RCP and workbench?
Next Topic:Equinox and Guice pattern
Goto Forum:
  


Current Time: Mon Sep 22 20:27:47 GMT 2014

Powered by FUDForum. Page generated in 0.10899 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software