[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] framework shutdown and bundle listeners


Reading the OSGi spec, the semantics of what happens w.r.t. events when shutting down the framework (e.g. with "stop 0") are not clear:

According to section 4.19.2, when shutting down the framework, these actions occur:

"1. The system bundle enters the STOPPING state.

2. All ACTIVE bundles are suspended as described in the Bundle.stop
method (...).

3. Event handling is disabled."

Will synchronous BundleListeners be notified during step 2 (before the framework is shut down)? Can I assume that asynchronous bundle listeners will never have a chance to be notified because of step 3?

Thanks for any comments,

Rafael