public class SortingServiceTracker<T>
extends org.osgi.util.tracker.ServiceTracker
Constructor and Description |
---|
SortingServiceTracker(org.osgi.framework.BundleContext context,
String clazz)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
addingService(org.osgi.framework.ServiceReference reference) |
List<org.osgi.framework.ServiceReference> |
getSortedServiceReferences()
Return a sorted list of the services references.
|
List<T> |
getSortedServices()
Return a sorted list of the services.
|
void |
modifiedService(org.osgi.framework.ServiceReference reference,
Object service) |
void |
removedService(org.osgi.framework.ServiceReference reference,
Object service) |
public SortingServiceTracker(org.osgi.framework.BundleContext context, String clazz)
context
- Bundle contextclazz
- Classpublic void removedService(org.osgi.framework.ServiceReference reference, Object service)
removedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
removedService
in class org.osgi.util.tracker.ServiceTracker
ServiceTracker.removedService(org.osgi.framework.ServiceReference, java.lang.Object)
public void modifiedService(org.osgi.framework.ServiceReference reference, Object service)
modifiedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
modifiedService
in class org.osgi.util.tracker.ServiceTracker
ServiceTrackerCustomizer.modifiedService(org.osgi.framework.ServiceReference, java.lang.Object)
public Object addingService(org.osgi.framework.ServiceReference reference)
addingService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
addingService
in class org.osgi.util.tracker.ServiceTracker
ServiceTrackerCustomizer.addingService(org.osgi.framework.ServiceReference)
public List<T> getSortedServices()
public List<org.osgi.framework.ServiceReference> getSortedServiceReferences()
Copyright © 2015 The Apache Software Foundation. All rights reserved.