Hi Sapna,

StartLevel is available as service:

StartLevel sl = bundleContext.getService(org.osgi.service.startlevel.StartLevel.class.getName();

sl.getStartLevel() gives the default start level.

sl.getStartLevel(bundleId) gives the bundle start level.

Regards
JB

On 08/06/2014 06:26 PM, SapnaB wrote:
Hi JB,

Thanks.. this clarifies a lot.
Is there any straight forward way to query the bundle level? I could not
find any API available in the com.osgi.framework.Bundle class.

Thanks,
Sapna



--
View this message in context: 
http://karaf.922171.n3.nabble.com/List-User-installed-bundles-in-Karaf-from-Java-tp4034602p4034609.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to