public class OsgiWhiteboard extends Object implements Whiteboard
| Constructor and Description |
|---|
OsgiWhiteboard(@NotNull BundleContext context) |
| Modifier and Type | Method and Description |
|---|---|
<T> Registration |
register(Class<T> type,
T service,
Map<?,?> properties)
Publishes the given service to the whiteboard.
|
<T> Tracker<T> |
track(Class<T> type)
Returns a tracker for services of the given type.
|
<T> Tracker<T> |
track(Class<T> type,
Map<String,String> filterProperties)
Starts tracking services of the given type, with given attributes.
|
public OsgiWhiteboard(@NotNull
@NotNull BundleContext context)
public <T> Registration register(Class<T> type, T service, Map<?,?> properties)
Whiteboardregister in interface Whiteboardtype - type of the serviceservice - service instanceproperties - service propertiespublic <T> Tracker<T> track(Class<T> type)
Tracker.getServices() calls through
the use of a pre-compiled list of services that's atomically updated
whenever services are added, modified or removed.track in interface Whiteboardtype - type of the services to trackpublic <T> Tracker<T> track(Class<T> type, Map<String,String> filterProperties)
Whiteboardtrack in interface Whiteboardtype - 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