Package org.osgi.framework
Interface FrameworkListener
-
- All Superinterfaces:
java.util.EventListener
- 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 FrameworkListener extends java.util.EventListenerAFrameworkEventlistener.FrameworkListeneris a listener interface that may be implemented by a bundle developer. When aFrameworkEventis fired, it is asynchronously delivered to aFrameworkListener. The Framework deliversFrameworkEventobjects to aFrameworkListenerin order and must not concurrently call aFrameworkListener.A
FrameworkListenerobject is registered with the Framework using theBundleContext.addFrameworkListener(FrameworkListener)method.FrameworkListenerobjects are called with aFrameworkEventobjects when the Framework starts and when asynchronous errors occur.- See Also:
FrameworkEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidframeworkEvent(FrameworkEvent event)Receives notification of a generalFrameworkEventobject.
-
-
-
Method Detail
-
frameworkEvent
void frameworkEvent(FrameworkEvent event)
Receives notification of a generalFrameworkEventobject.- Parameters:
event- TheFrameworkEventobject.
-
-