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