karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: List User installed bundles in Karaf from Java
Date Wed, 06 Aug 2014 19:41:01 GMT
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é
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message