com.sag.osami.contextstore.osgi
Class OsgiContextStoreSetter
java.lang.Object
com.sag.osami.contextstore.osgi.OsgiContextStoreSetter
- All Implemented Interfaces:
- org.osgi.util.tracker.ServiceTrackerCustomizer
public class OsgiContextStoreSetter
- extends java.lang.Object
- implements org.osgi.util.tracker.ServiceTrackerCustomizer
This class tracks all services which are interested in getting access to the ContextStore, i.e.:
It grants access to the ContextStore by calling the setContextStore
method of the interested service. If
the interested service is a handler, this class also registers it as a handler in the ContextStore.
Method Summary |
java.lang.Object |
addingService(org.osgi.framework.ServiceReference reference)
|
void |
modifiedService(org.osgi.framework.ServiceReference reference,
java.lang.Object service)
|
void |
removedService(org.osgi.framework.ServiceReference reference,
java.lang.Object service)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OsgiContextStoreSetter
public OsgiContextStoreSetter(ContextStore contextStore)
addingService
public java.lang.Object addingService(org.osgi.framework.ServiceReference reference)
- Specified by:
addingService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
removedService
public void removedService(org.osgi.framework.ServiceReference reference,
java.lang.Object service)
- Specified by:
removedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
modifiedService
public void modifiedService(org.osgi.framework.ServiceReference reference,
java.lang.Object service)
- Specified by:
modifiedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer