public class SortingServiceTracker<T> extends ServiceTracker
Constructor and Description |
---|
SortingServiceTracker(BundleContext context,
java.lang.String clazz)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
addingService(ServiceReference reference) |
java.util.List<ServiceReference> |
getSortedServiceReferences()
Return a sorted list of the services references.
|
java.util.List<T> |
getSortedServices()
Return a sorted list of the services.
|
void |
modifiedService(ServiceReference reference,
java.lang.Object service) |
void |
removedService(ServiceReference reference,
java.lang.Object service) |
close, getService, getService, getServiceReference, getServiceReferences, getServices, getServices, getTracked, getTrackingCount, isEmpty, open, open, remove, size, waitForService
public SortingServiceTracker(BundleContext context, java.lang.String clazz)
context
- Bundle contextclazz
- Classpublic void removedService(ServiceReference reference, java.lang.Object service)
removedService
in interface ServiceTrackerCustomizer
removedService
in class ServiceTracker
ServiceTracker.removedService(org.osgi.framework.ServiceReference, java.lang.Object)
public void modifiedService(ServiceReference reference, java.lang.Object service)
modifiedService
in interface ServiceTrackerCustomizer
modifiedService
in class ServiceTracker
ServiceTrackerCustomizer.modifiedService(org.osgi.framework.ServiceReference, java.lang.Object)
public java.lang.Object addingService(ServiceReference reference)
addingService
in interface ServiceTrackerCustomizer
addingService
in class ServiceTracker
ServiceTrackerCustomizer.addingService(org.osgi.framework.ServiceReference)
public java.util.List<T> getSortedServices()
public java.util.List<ServiceReference> getSortedServiceReferences()
Copyright © 2010 - 2020 Adobe. All Rights Reserved