Interface Whiteboard
- 
- All Known Implementing Classes:
 DefaultWhiteboard,OsgiWhiteboard
@ProviderType public interface Whiteboard
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Registrationregister(java.lang.Class<T> type, T service, java.util.Map<?,?> properties)Publishes the given service to the whiteboard.<T> Tracker<T>track(java.lang.Class<T> type)Starts tracking services of the given type.<T> Tracker<T>track(java.lang.Class<T> type, java.util.Map<java.lang.String,java.lang.String> filterProperties)Starts tracking services of the given type, with given attributes. 
 - 
 
- 
- 
Method Detail
- 
register
<T> Registration register(java.lang.Class<T> type, T service, java.util.Map<?,?> properties)
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- Returns:
 - service registration
 
 
- 
track
<T> Tracker<T> track(java.lang.Class<T> type)
Starts tracking services of the given type.- Parameters:
 type- type of the services to track- Returns:
 - service tracker
 
 
- 
track
<T> Tracker<T> track(java.lang.Class<T> type, java.util.Map<java.lang.String,java.lang.String> filterProperties)
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
 
 
 - 
 
 -