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 Tue, 12 Aug 2014 08:06:55 GMT
Hi Sapna,

for OSGi > 4.3, you have to do:

org.osgi.framework.startlevel.BundleStartLevel bsl = 
bundle.adapt(BundleStartLevel.class);
int startLevel = bsl.getStartLevel();

where bundle is org.osgi.framework.Bundle.

Regards
JB

On 08/12/2014 09:12 AM, SapnaB wrote:
> Hi JB
>
> StartLevel is deprecated in OSGi 4.3. Is there any equivalent service
> available which I can use?
> I tried BundleStartLevel, but that doesnt give me the desired results.
>
> Thanks,
> Sapna
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/List-User-installed-bundles-in-Karaf-from-Java-tp4034602p4034702.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