Class DefaultWhiteboard
java.lang.Object
org.apache.jackrabbit.oak.spi.whiteboard.DefaultWhiteboard
- All Implemented Interfaces:
Whiteboard
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> RegistrationPublishes the given service to the whiteboard.<T> Tracker<T> Starts tracking services of the given type.<T> Tracker<T> Starts tracking services of the given type, with given attributes.
-
Constructor Details
-
DefaultWhiteboard
public DefaultWhiteboard()
-
-
Method Details
-
register
Description copied from interface:WhiteboardPublishes the given service to the whiteboard. Use the returned registration object to unregister the service.- Specified by:
registerin interfaceWhiteboard- Parameters:
type- type of the serviceservice- service instanceproperties- service properties. Those need to useStringkeys, but for backwards compatibility reasons this is not enforced via generics.- Returns:
- service registration
-
track
Description copied from interface:WhiteboardStarts tracking services of the given type.- Specified by:
trackin interfaceWhiteboard- Parameters:
type- type of the services to track- Returns:
- service tracker
-
track
Description copied from interface:WhiteboardStarts tracking services of the given type, with given attributes.- Specified by:
trackin interfaceWhiteboard- Parameters:
type- type of the services to trackfilterProperties- only services with these properties will be tracked. Null keys are not permitted. Null values means that the property should be absent.- Returns:
- service tracker
-