The BundleTracker uses BundleListeners. But in either case, a bundle doing 
this can only observe the event while the bundle active with the 
registered listener. If you must see every possible event, you will need 
to write your own framework launcher and register a listener before the 
framework is launched.
-- 

BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance
[email protected]

office: +1 386 848 1781
mobile: +1 386 848 3788




From:   Scott Lewis <[email protected]>
To:     OSGi Developer Mail List <[email protected]>
Date:   2013/04/23 15:02
Subject:        [osgi-dev] recording bundle start/shutdown
Sent by:        [email protected]



What would be the simplest way to record the bundle state changes 
(installed->resolved->starting->etc) at framework startup and 
shutdown?    What I'm wanting to do is to take an existing OSGi 
application...and understand the startup and shutdown sequence...e.g. 
when/what thread [stack?] is responsible for each state transition.

I suppose it could be a BundleTracker...but I wanted to know if there 
were other mechanisms.

Thanksinadvance,

Scott




_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev


_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to