On Jul 1, 2009, at 11:56 AM, Richard S. Hall wrote:
On 7/1/09 2:28 PM, Alan D. Cabrera wrote:
On Jul 1, 2009, at 11:07 AM, Richard S. Hall wrote:
On 7/1/09 1:43 PM, Alan D. Cabrera wrote:
I find it odd that it is in init() that
- Event handling is turned in
- Framework services are registered
but it is in stop() that
-Event handling is turned off
- Framework services are unregistered
Why?
Opps.
I like to think that start and stop are symmetrical. If I call
stop it will take me back to the exact same place as where I was
before I called start.
That's not even true for normal bundles, since the start() causes a
resolve and stop() doesn't undo that.
Just like resolving is a side effect of Bundle.start(), init'ing is
a side effect of Framework.start(). If you ignore Framework.init()
and call Framework.start() then Framework.stop(), then the same type
of symmetry exists as between Bundle.start()/Bundle.stop().
Point taken. Thanks.
Regards,
Alan
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev