Package org.osgi.framework
Interface BundleListener
-
- All Superinterfaces:
java.util.EventListener
- All Known Subinterfaces:
SynchronousBundleListener
@ConsumerType public interface BundleListener extends java.util.EventListener
ABundleEvent
listener.BundleListener
is a listener interface that may be implemented by a bundle developer. When aBundleEvent
is fired, it is asynchronously delivered to aBundleListener
. The Framework deliversBundleEvent
objects to aBundleListener
in order and must not concurrently call aBundleListener
.A
BundleListener
object is registered with the Framework using theBundleContext.addBundleListener(BundleListener)
method.BundleListener
s are called with aBundleEvent
object when a bundle has been installed, resolved, started, stopped, updated, unresolved, or uninstalled.- Author:
- $Id: 2c27d37a3a77e1c80f9b022f8dc2f614dff5f5ef $
- See Also:
BundleEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
bundleChanged(BundleEvent event)
Receives notification that a bundle has had a lifecycle change.
-
-
-
Method Detail
-
bundleChanged
void bundleChanged(BundleEvent event)
Receives notification that a bundle has had a lifecycle change.- Parameters:
event
- TheBundleEvent
.
-
-