|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OsgiBundleApplicationContextEventMulticaster
Interface to be implemented by objects that can manage a number of
OsgiBundleApplicationContextListener
s, and publish events to them.
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
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 multicast
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |