|
| Re: Do I have to remove BundleListeners when Bundles are uninstalled? [message #508650 is a reply to message #502821] |
Tue, 19 January 2010 12:40  |
Thomas Watson Messages: 390 Registered: July 2009 |
Senior Member |
|
|
Probably too late to be useful. But when a bundle is uninstalled it first is stopped. This allows the bundles themselves to clean up and remove any listeners they need to. This is important if the bundle has some ordering issue where they need to remove some listeners before disabling some functionality of the bundle on stop().
But the framework is still responsible for removing and remaining listeners which the bundle may have registered with its BundleContext when the bundle is stopped. The end result is that a management agent (doing the uninstall operation) should not have to worry about cleaning up any listeners registered by the bundles it is uninstalling.
HTH
Tom.
|
|
|
Powered by
FUDForum. Page generated in 0.03348 seconds