]
Gary Brown updated OVERLORD-137:
--------------------------------
Fix Version/s: Overlord-Commons-2.0.10.Final
(was: Overlord-Commons-2.0.8.Final)
Ensure cached OSGi services are removed when service bundle
uninstalled
-----------------------------------------------------------------------
Key: OVERLORD-137
URL:
https://issues.jboss.org/browse/OVERLORD-137
Project: Overlord
Issue Type: Enhancement
Reporter: Gary Brown
Assignee: Gary Brown
Fix For: Overlord-Commons-2.0.10.Final
When services are retrieved using the getServices or getSingleService method on the
ServiceRegistry(Util), they are cached for more efficient subsequent access.
The ServiceListener mechanism enables a client to be notified when services implementing
a particular interface are registered or unregistered.
Either use a direct OSGi service listener, or the ServiceRegistry ServiceListener, to
determine when the cached services should be removed.