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