T
- the type of the service to trackpublic class RankedServiceTracker<T> extends org.osgi.util.tracker.ServiceTracker<T,RankedService<T>>
RankedService
.Constructor and Description |
---|
RankedServiceTracker(org.osgi.framework.BundleContext context,
java.lang.Class<T> serviceClass,
java.util.function.Consumer<RankedService<T>> add,
java.util.function.Consumer<RankedService<T>> remove) |
RankedServiceTracker(org.osgi.framework.BundleContext context,
java.lang.Class<T> serviceClass,
java.util.function.Consumer<RankedService<T>> add,
java.util.function.Consumer<RankedService<T>> modify,
java.util.function.Consumer<RankedService<T>> remove) |
public RankedServiceTracker(org.osgi.framework.BundleContext context, java.lang.Class<T> serviceClass, java.util.function.Consumer<RankedService<T>> add, java.util.function.Consumer<RankedService<T>> remove)
context
- the bundle context to listen overserviceClass
- the class of service to trackadd
- callback for services beginning their lifecycleremove
- callback for services at the end of their lifecyclepublic RankedServiceTracker(org.osgi.framework.BundleContext context, java.lang.Class<T> serviceClass, java.util.function.Consumer<RankedService<T>> add, java.util.function.Consumer<RankedService<T>> modify, java.util.function.Consumer<RankedService<T>> remove)
context
- the bundle context to listen overserviceClass
- the class of service to trackadd
- callback for services beginning their lifecyclemodify
- callback for services whose ranking has changedremove
- callback for services at the end of their lifecycle