When a bundle is stopped, all the listeners registered with the framework 
are automatically removed. This should be discussed in 4.3.9 but I see 
that it is not :-(

However 4.3.6 contains the following:

"However, it is unnecessary to unregister services or Framework listeners, 
because they must be cleaned up by the Framework anyway."

And 6.1.4.29 Bundle.stop also says:

"Any listeners registered by this bundle must be removed."

It would be nice if 4.3.9 also discussed this.
-- 

BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance
[EMAIL PROTECTED]

office: +1 386 848 1781
mobile: +1 386 848 3788




From:
Alan Cabrera <[EMAIL PROTECTED]>
To:
OSGi Mail List Developer <[email protected]>
Date:
2008-01-23 11:53
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


_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev

Reply via email to