|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.osgi.context.event.OsgiBundleApplicationContextEventMulticasterAdapter
public class OsgiBundleApplicationContextEventMulticasterAdapter
Adapter class between Spring ApplicationEventMulticaster
and
Spring-DM OsgiBundleApplicationContextEventMulticaster
. Allows
reusage (especially considering the contractual similarities between the two
interfaces) of existing implementations for propagating Spring-DM events.
Constructor Summary | |
---|---|
OsgiBundleApplicationContextEventMulticasterAdapter(ApplicationEventMulticaster delegatedMulticaster)
Constructs a new OsgiBundleApplicationContextEventMulticasterAdapter
instance. |
Method Summary | |
---|---|
void |
addApplicationListener(OsgiBundleApplicationContextListener osgiListener)
Add an OSGi listener to be notified of all events. The given listener is wrapped with an adapter class that delegates the equals/hashcode methods to the wrapped listener instance. |
void |
multicastEvent(OsgiBundleApplicationContextEvent osgiEvent)
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. The given listener is wrapped with an adapter class that delegates the equals/hashcode methods to the wrapped listener instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OsgiBundleApplicationContextEventMulticasterAdapter(ApplicationEventMulticaster delegatedMulticaster)
OsgiBundleApplicationContextEventMulticasterAdapter
instance.
delegatedMulticaster
- Method Detail |
---|
public void addApplicationListener(OsgiBundleApplicationContextListener osgiListener)
addApplicationListener
in interface OsgiBundleApplicationContextEventMulticaster
osgiListener
- the listener to addpublic void multicastEvent(OsgiBundleApplicationContextEvent osgiEvent)
OsgiBundleApplicationContextEventMulticaster
multicastEvent
in interface OsgiBundleApplicationContextEventMulticaster
osgiEvent
- the event to multicastpublic void removeAllListeners()
OsgiBundleApplicationContextEventMulticaster
removeAllListeners
in interface OsgiBundleApplicationContextEventMulticaster
public void removeApplicationListener(OsgiBundleApplicationContextListener osgiListener)
removeApplicationListener
in interface OsgiBundleApplicationContextEventMulticaster
osgiListener
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |