Class ObserverTracker

java.lang.Object
org.apache.jackrabbit.oak.spi.commit.ObserverTracker
All Implemented Interfaces:
ServiceTrackerCustomizer

public class ObserverTracker extends Object implements ServiceTrackerCustomizer
  • Constructor Details

    • ObserverTracker

      public ObserverTracker(@NotNull @NotNull Observable observable)
  • Method Details

    • start

      public void start(@NotNull @NotNull BundleContext bundleContext)
    • stop

      public void stop()
    • addingService

      public Object addingService(ServiceReference reference)
      Description copied from interface: ServiceTrackerCustomizer
      A service is being added to the ServiceTracker.

      This method is called before a service which matched the search parameters of the ServiceTracker is added to the ServiceTracker. This method should return the service object to be tracked for the specified ServiceReference. The returned service object is stored in the ServiceTracker and is available from the getService and getServices methods.

      Specified by:
      addingService in interface ServiceTrackerCustomizer
      Parameters:
      reference - The reference to the service being added to the ServiceTracker.
      Returns:
      The service object to be tracked for the specified referenced service or null if the specified referenced service should not be tracked.
    • modifiedService

      public void modifiedService(ServiceReference reference, Object service)
      Description copied from interface: ServiceTrackerCustomizer
      A service tracked by the ServiceTracker has been modified.

      This method is called when a service being tracked by the ServiceTracker has had it properties modified.

      Specified by:
      modifiedService in interface ServiceTrackerCustomizer
      Parameters:
      reference - The reference to the service that has been modified.
      service - The service object for the specified referenced service.
    • removedService

      public void removedService(ServiceReference reference, Object service)
      Description copied from interface: ServiceTrackerCustomizer
      A service tracked by the ServiceTracker has been removed.

      This method is called after a service is no longer being tracked by the ServiceTracker.

      Specified by:
      removedService in interface ServiceTrackerCustomizer
      Parameters:
      reference - The reference to the service that has been removed.
      service - The service object for the specified referenced service.