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 java.lang.Object
AbstractServiceTracker
is a base class for composite components that dynamically look up the available component services from the whiteboard.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractServiceTracker(@NotNull java.lang.Class<T> type)
protected
AbstractServiceTracker(@NotNull java.lang.Class<T> type, @NotNull java.util.Map<java.lang.String,java.lang.String> filterProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<T>
getServices()
Returns all services of typeT
that are currently available.void
start(Whiteboard whiteboard)
void
stop()
-
-
-
Constructor Detail
-
AbstractServiceTracker
protected AbstractServiceTracker(@NotNull @NotNull java.lang.Class<T> type)
-
AbstractServiceTracker
protected AbstractServiceTracker(@NotNull @NotNull java.lang.Class<T> type, @NotNull @NotNull java.util.Map<java.lang.String,java.lang.String> filterProperties)
-
-
Method Detail
-
start
public void start(Whiteboard whiteboard)
-
stop
public void stop()
-
getServices
protected java.util.List<T> getServices()
Returns all services of typeT
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
-
-