org.eclipse.ecf.osgi.services.discovery.local
Class DSTTracker
java.lang.Object
org.eclipse.ecf.osgi.services.discovery.local.DSTTracker
- All Implemented Interfaces:
- org.osgi.util.tracker.ServiceTrackerCustomizer
public class DSTTracker
- extends java.lang.Object
- implements org.osgi.util.tracker.ServiceTrackerCustomizer
This class monitors the lifecycle of DiscoveredServiceTrackers. They will be
notified on registration and modification if any service has been published.
TODO: replace arg0 arg names with more descriptive ones
Constructor Summary |
DSTTracker(org.osgi.framework.BundleContext ctx)
|
Method Summary |
java.lang.Object |
addingService(org.osgi.framework.ServiceReference dstTrackerReference)
|
java.util.Map |
getDsTrackers()
|
void |
modifiedService(org.osgi.framework.ServiceReference dstTrackerReference,
java.lang.Object arg1)
|
void |
removedService(org.osgi.framework.ServiceReference dstTrackerReference,
java.lang.Object arg1)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DSTTracker
public DSTTracker(org.osgi.framework.BundleContext ctx)
- Parameters:
ctx
-
getDsTrackers
public java.util.Map getDsTrackers()
- Returns:
- a new instance of dsTracker map
addingService
public java.lang.Object addingService(org.osgi.framework.ServiceReference dstTrackerReference)
- Specified by:
addingService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
- See Also:
ServiceTrackerCustomizer.addingService(org.osgi.framework.ServiceReference)
modifiedService
public void modifiedService(org.osgi.framework.ServiceReference dstTrackerReference,
java.lang.Object arg1)
- Specified by:
modifiedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
- See Also:
ServiceTrackerCustomizer.modifiedService(org.osgi.framework.ServiceReference,
java.lang.Object)
removedService
public void removedService(org.osgi.framework.ServiceReference dstTrackerReference,
java.lang.Object arg1)
- Specified by:
removedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
- See Also:
ServiceTrackerCustomizer.removedService(org.osgi.framework.ServiceReference,
java.lang.Object)