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