public class ServiceEventAdapter extends AbstractAdapter implements org.osgi.framework.ServiceListener
| Constructor and Description |
|---|
ServiceEventAdapter(org.osgi.framework.BundleContext context,
org.osgi.service.event.EventAdmin admin)
The constructor of the adapter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(org.osgi.framework.BundleContext context) |
void |
serviceChanged(org.osgi.framework.ServiceEvent event)
Once a Service event is received this method assembles and posts an event
via the
EventAdmin as specified in 113.6.5 OSGi R4 compendium. |
getEventAdminpublic ServiceEventAdapter(org.osgi.framework.BundleContext context,
org.osgi.service.event.EventAdmin admin)
ServiceListener and subsequently, will
post received events via the given EventAdmin.context - The bundle context with which to register as a listener.admin - The EventAdmin to use for posting events.public void destroy(org.osgi.framework.BundleContext context)
destroy in class AbstractAdapterpublic void serviceChanged(org.osgi.framework.ServiceEvent event)
EventAdmin as specified in 113.6.5 OSGi R4 compendium.serviceChanged in interface org.osgi.framework.ServiceListenerevent - The event to adapt.Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.