Package org.osgi.framework
Interface BundleListener
-
- All Superinterfaces:
java.util.EventListener
- All Known Subinterfaces:
SynchronousBundleListener
- All Known Implementing Classes:
BundleTracker.Tracked
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@ConsumerType @FunctionalInterface public interface BundleListener extends java.util.EventListenerABundleEventlistener.BundleListeneris a listener interface that may be implemented by a bundle developer. When aBundleEventis fired, it is asynchronously delivered to aBundleListener. The Framework deliversBundleEventobjects to aBundleListenerin order and must not concurrently call aBundleListener.A
BundleListenerobject is registered with the Framework using theBundleContext.addBundleListener(BundleListener)method.BundleListeners are called with aBundleEventobject when a bundle has been installed, resolved, started, stopped, updated, unresolved, or uninstalled.- See Also:
BundleEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbundleChanged(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.
-
-