Class RestServiceTracker

java.lang.Object
org.osgi.util.tracker.ServiceTracker<Object,Object>
org.opencastproject.serviceregistry.internal.RestServiceTracker
All Implemented Interfaces:
org.osgi.util.tracker.ServiceTrackerCustomizer<Object,Object>

public class RestServiceTracker extends org.osgi.util.tracker.ServiceTracker<Object,Object>
A custom ServiceTracker that registers all locally published servlets so clients can find the most appropriate service on the network to handle new jobs.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.osgi.framework.BundleContext
     
    protected static final String
     

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

    context, filter
  • Constructor Summary

    Constructors
    Constructor
    Description
    RestServiceTracker(ServiceRegistry serviceRegistry, org.osgi.framework.BundleContext bundleContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addingService(org.osgi.framework.ServiceReference reference)
     
    void
    removedService(org.osgi.framework.ServiceReference reference, Object service)
     

    Methods inherited from class org.osgi.util.tracker.ServiceTracker

    close, getService, getService, getServiceReference, getServiceReferences, getServices, getServices, getTracked, getTrackingCount, isEmpty, modifiedService, open, open, remove, size, waitForService

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • FILTER

      protected static final String FILTER
      See Also:
    • bundleContext

      protected org.osgi.framework.BundleContext bundleContext
  • Constructor Details

    • RestServiceTracker

      public RestServiceTracker(ServiceRegistry serviceRegistry, org.osgi.framework.BundleContext bundleContext) throws org.osgi.framework.InvalidSyntaxException
      Throws:
      org.osgi.framework.InvalidSyntaxException
  • Method Details

    • addingService

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

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