public abstract class WhiteboardServiceTracker<T>
extends org.osgi.util.tracker.ServiceTracker<T,org.osgi.framework.ServiceReference<T>>
| Constructor and Description |
|---|
WhiteboardServiceTracker(WhiteboardManager contextManager,
org.osgi.framework.BundleContext bundleContext,
String filterExpr)
Create a new tracker
|
| Modifier and Type | Method and Description |
|---|---|
org.osgi.framework.ServiceReference<T> |
addingService(org.osgi.framework.ServiceReference<T> ref) |
void |
close() |
protected abstract WhiteboardServiceInfo<T> |
getServiceInfo(org.osgi.framework.ServiceReference<T> ref)
Implemented by sub classes to create the correct whiteboard service info object.
|
void |
modifiedService(org.osgi.framework.ServiceReference<T> ref,
org.osgi.framework.ServiceReference<T> service) |
void |
removedService(org.osgi.framework.ServiceReference<T> ref,
org.osgi.framework.ServiceReference<T> service) |
public WhiteboardServiceTracker(WhiteboardManager contextManager, org.osgi.framework.BundleContext bundleContext, String filterExpr)
contextManager - The context managerbundleContext - The bundle context.filterExpr - The filter expression for the services to trackpublic void close()
public final org.osgi.framework.ServiceReference<T> addingService(org.osgi.framework.ServiceReference<T> ref)
public final void modifiedService(org.osgi.framework.ServiceReference<T> ref, org.osgi.framework.ServiceReference<T> service)
public final void removedService(org.osgi.framework.ServiceReference<T> ref, org.osgi.framework.ServiceReference<T> service)
protected abstract WhiteboardServiceInfo<T> getServiceInfo(org.osgi.framework.ServiceReference<T> ref)
ref - The service referenceCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.