public class BundleEventAdapter
extends org.apache.felix.eventadmin.impl.adapter.AbstractAdapter
implements org.osgi.framework.SynchronousBundleListener
| Constructor and Description |
|---|
BundleEventAdapter(org.osgi.framework.BundleContext context,
org.osgi.service.event.EventAdmin admin)
The constructor of the adapter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bundleChanged(org.osgi.framework.BundleEvent event)
Once a bundle event is received this method assembles and posts an event via
the
EventAdmin as specified in 113.6.4 OSGi R4 compendium. |
void |
destroy(org.osgi.framework.BundleContext context) |
public BundleEventAdapter(org.osgi.framework.BundleContext context,
org.osgi.service.event.EventAdmin admin)
BundleListener 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 org.apache.felix.eventadmin.impl.adapter.AbstractAdapterpublic void bundleChanged(org.osgi.framework.BundleEvent event)
EventAdmin as specified in 113.6.4 OSGi R4 compendium.bundleChanged in interface org.osgi.framework.BundleListenerevent - The event to adapt.Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.