Class ServiceHandle.InstanceTracker

  • All Implemented Interfaces:
    org.osgi.util.tracker.ServiceTrackerCustomizer<T,​T>
    Enclosing class:
    ServiceHandle<T>

    protected class ServiceHandle.InstanceTracker
    extends org.osgi.util.tracker.ServiceTracker<T,​T>
    • Field Summary

      • Fields inherited from class org.osgi.util.tracker.ServiceTracker

        context, filter
    • Constructor Summary

      Constructors 
      Constructor Description
      InstanceTracker​(org.osgi.framework.BundleContext context, org.osgi.framework.ServiceReference<T> reference)  
    • Constructor Detail

      • InstanceTracker

        public InstanceTracker​(org.osgi.framework.BundleContext context,
                               org.osgi.framework.ServiceReference<T> reference)
    • Method Detail

      • addingService

        public T addingService​(org.osgi.framework.ServiceReference<T> reference)
        Specified by:
        addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<T,​T>
        Overrides:
        addingService in class org.osgi.util.tracker.ServiceTracker<T,​T>
      • removedService

        public void removedService​(org.osgi.framework.ServiceReference<T> reference,
                                   T service)
        Specified by:
        removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<T,​T>
        Overrides:
        removedService in class org.osgi.util.tracker.ServiceTracker<T,​T>
      • waitForService

        public T waitForService()