public class DefaultWhiteboard extends java.lang.Object implements Whiteboard
Constructor and Description |
---|
DefaultWhiteboard() |
Modifier and Type | Method and Description |
---|---|
<T> Registration |
register(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.
|
public <T> Registration register(java.lang.Class<T> type, T service, java.util.Map<?,?> properties)
Whiteboard
register
in interface Whiteboard
type
- type of the serviceservice
- service instanceproperties
- service propertiespublic <T> Tracker<T> track(java.lang.Class<T> type)
Whiteboard
track
in interface Whiteboard
type
- type of the services to trackpublic <T> Tracker<T> track(java.lang.Class<T> type, java.util.Map<java.lang.String,java.lang.String> filterProperties)
Whiteboard
track
in interface Whiteboard
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.Copyright © 2010 - 2020 Adobe. All Rights Reserved