Interface Whiteboard
- All Known Implementing Classes:
DefaultWhiteboard
,NodeStoreFixtureProvider.ClosingWhiteboard
,OsgiWhiteboard
@ProviderType
public interface Whiteboard
-
Method Summary
Modifier and TypeMethodDescription<T> Registration
Publishes 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.
-
Method Details
-
register
Publishes the given service to the whiteboard. Use the returned registration object to unregister the service.- Parameters:
type
- type of the serviceservice
- service instanceproperties
- service properties. Those need to useString
keys, but for backwards compatibility reasons this is not enforced via generics.- Returns:
- service registration
-
track
Starts tracking services of the given type.- Parameters:
type
- type of the services to track- Returns:
- service tracker
-
track
Starts tracking services of the given type, with given attributes.- 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
-