Class AbstractServiceTracker<T>

java.lang.Object
org.apache.jackrabbit.oak.spi.whiteboard.AbstractServiceTracker<T>
Direct Known Subclasses:
DynamicMembershipTracker, ExternalIDPManagerImpl, GCMonitorTracker, JournalPropertyHandlerFactory, SyncManagerImpl, WhiteboardAuthorizableActionProvider, WhiteboardAuthorizableNodeName, WhiteboardEditorProvider, WhiteboardExecutor, WhiteboardIndexEditorProvider, WhiteboardIndexProvider, WhiteboardRestrictionProvider, WhiteboardUserAuthenticationFactory

public abstract class AbstractServiceTracker<T> extends Object
AbstractServiceTracker is a base class for composite components that dynamically look up the available component services from the whiteboard.
  • Constructor Details

    • AbstractServiceTracker

      protected AbstractServiceTracker(@NotNull @NotNull Class<T> type)
    • AbstractServiceTracker

      protected AbstractServiceTracker(@NotNull @NotNull Class<T> type, @NotNull @NotNull Map<String,String> filterProperties)
  • Method Details

    • start

      public void start(Whiteboard whiteboard)
    • stop

      public void stop()
    • getServices

      protected List<T> getServices()
      Returns all services of type T that are currently available. This method is intentionally not synchronized to prevent lock contention when accessed frequently in highly concurrent code.
      Returns:
      currently available services