Hi Alan, When a bundle is uninstalled it is first stopped by the framework if the bundle is currently active. This operation will run the BundleActivator.stop method, which allows the bundle itself to do some clean up. Then the framework does additional clean up. This additional cleanup includes automatically removing any (Framework, Service, Bundle) listeners for which the bundle forgot to remove itself.
Short answer, yes the (Framework, Service, Bundle) listeners are all
automatically cleaned up on uninstall.
Tom
From: Alan Cabrera <[EMAIL PROTECTED]>
To: OSGi Mail List Developer <[email protected]>
Date: 01/23/2008 10:53 AM
Subject: [osgi-dev] Registered listeners
I may have missed something but it's not clear to me what happens to
listeners that have been registered through a particular bundle
context and that bundle has been uninstalled. I would think that they
would get unregistered automatically but am not clear where it states
that in the spec.
What have I missed?
Regards,
Alan
_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
_______________________________________________ OSGi Developer Mail List [email protected] http://www2.osgi.org/mailman/listinfo/osgi-dev
