org.qi4j.library.osgi
Class OSGiServiceImporter.ServiceTrackerHandler

java.lang.Object
  extended by org.osgi.util.tracker.ServiceTracker
      extended by org.qi4j.library.osgi.OSGiServiceImporter.ServiceTrackerHandler
All Implemented Interfaces:
InvocationHandler, org.osgi.util.tracker.ServiceTrackerCustomizer
Enclosing class:
OSGiServiceImporter

public static class OSGiServiceImporter.ServiceTrackerHandler
extends org.osgi.util.tracker.ServiceTracker
implements InvocationHandler


Field Summary
 
Fields inherited from class org.osgi.util.tracker.ServiceTracker
context, filter
 
Constructor Summary
OSGiServiceImporter.ServiceTrackerHandler(org.osgi.framework.BundleContext context, Class typeToImport)
           
 
Method Summary
 Object addingService(org.osgi.framework.ServiceReference reference)
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 boolean isActive()
           
 boolean isAvailable()
           
 void removedService(org.osgi.framework.ServiceReference reference, Object service)
           
 
Methods inherited from class org.osgi.util.tracker.ServiceTracker
close, getService, getService, getServiceReference, getServiceReferences, getServices, getTrackingCount, modifiedService, open, open, remove, size, waitForService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiServiceImporter.ServiceTrackerHandler

public OSGiServiceImporter.ServiceTrackerHandler(org.osgi.framework.BundleContext context,
                                                 Class typeToImport)
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

addingService

public Object addingService(org.osgi.framework.ServiceReference reference)
Specified by:
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer
Overrides:
addingService in class org.osgi.util.tracker.ServiceTracker

removedService

public void removedService(org.osgi.framework.ServiceReference reference,
                           Object service)
Specified by:
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer
Overrides:
removedService in class org.osgi.util.tracker.ServiceTracker

isAvailable

public boolean isAvailable()

isActive

public boolean isActive()