public interface OsgiBundleApplicationContextEventMulticaster
OsgiBundleApplicationContextListener
s, and publish events to them.
The contract of this interface is very similar to that of
ApplicationEventMulticaster
except
the type of listeners this multicaster can handle. Different from the
aforementioned class, this interface is used for broadcasting life cycle
events of application contexts started inside an OSGi environment, to outside
entities. This normally implies that the entities as well as the multicaster
are not managed by the application context triggering the event (so that a
destruction event can be properly propagated).ApplicationEventMulticaster
Modifier and Type | Method and Description |
---|---|
void |
addApplicationListener(OsgiBundleApplicationContextListener osgiListener)
Add an OSGi listener to be notified of all events.
|
void |
multicastEvent(OsgiBundleApplicationContextEvent osgiListener)
Multicast the given application event to appropriate listeners.
|
void |
removeAllListeners()
Remove all listeners registered with this multicaster.
|
void |
removeApplicationListener(OsgiBundleApplicationContextListener osgiListener)
Remove an OSGi listener from the notification list.
|
void addApplicationListener(OsgiBundleApplicationContextListener osgiListener)
osgiListener
- the listener to addvoid removeApplicationListener(OsgiBundleApplicationContextListener osgiListener)
osgiListener
- the listener to removevoid removeAllListeners()
void multicastEvent(OsgiBundleApplicationContextEvent osgiListener)
osgiListener
- the event to multicastCopyright © 2006–2015. All rights reserved.