Package org.apache.jackrabbit.oak.osgi
Class OsgiWhiteboard
java.lang.Object
org.apache.jackrabbit.oak.osgi.OsgiWhiteboard
- All Implemented Interfaces:
Whiteboard
OSGi-based whiteboard implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> RegistrationPublishes the given service to the whiteboard.<T> Tracker<T> Returns a tracker for services of the given type.<T> Tracker<T> Starts tracking services of the given type, with given attributes.
-
Constructor Details
-
OsgiWhiteboard
-
-
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
Returns a tracker for services of the given type. The returned tracker is optimized for frequentTracker.getServices()calls through the use of a pre-compiled list of services that's atomically updated whenever services are added, modified or removed.- 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
-