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
2. All ACTIVE bundles are suspended
as described in the Bundle.stop
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?