public static class OSGiServiceImporter.ServiceTrackerHandler extends org.osgi.util.tracker.ServiceTracker implements InvocationHandler
Constructor and Description |
---|
ServiceTrackerHandler(org.osgi.framework.BundleContext context,
Class typeToImport) |
Modifier and Type | Method and Description |
---|---|
Object |
addingService(org.osgi.framework.ServiceReference reference) |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
boolean |
isAvailable() |
void |
removedService(org.osgi.framework.ServiceReference reference,
Object service) |
public ServiceTrackerHandler(org.osgi.framework.BundleContext context, Class typeToImport)
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public Object addingService(org.osgi.framework.ServiceReference reference)
addingService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
addingService
in class org.osgi.util.tracker.ServiceTracker
public void removedService(org.osgi.framework.ServiceReference reference, Object service)
removedService
in interface org.osgi.util.tracker.ServiceTrackerCustomizer
removedService
in class org.osgi.util.tracker.ServiceTracker
public boolean isAvailable()