Package org.osgi.framework
Interface BundleListener
-
- All Superinterfaces:
EventListener
- All Known Subinterfaces:
SynchronousBundleListener
- All Known Implementing Classes:
DefaultWorker
,EquinoxWorker
,FelixWorker
- 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 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.- 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
.
-
-