public class OsgiWhiteboard extends java.lang.Object implements Whiteboard
| Constructor and Description |
|---|
OsgiWhiteboard(org.osgi.framework.BundleContext context) |
| 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)
Returns a tracker for services of the given type.
|
public <T> Registration register(java.lang.Class<T> type, T service, java.util.Map<?,?> properties)
Whiteboardregister in interface Whiteboardtype - type of the serviceservice - service instanceproperties - service propertiespublic <T> Tracker<T> track(java.lang.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 track"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"