public class OsgiBundleApplicationContextEventMulticasterAdapter extends Object implements OsgiBundleApplicationContextEventMulticaster
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 and Description |
|---|
OsgiBundleApplicationContextEventMulticasterAdapter(org.springframework.context.event.ApplicationEventMulticaster delegatedMulticaster)
Constructs a new
OsgiBundleApplicationContextEventMulticasterAdapter instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addApplicationListener(OsgiBundleApplicationContextListener osgiListener)
Add an OSGi listener to be notified of all events.
|
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.
|
public OsgiBundleApplicationContextEventMulticasterAdapter(org.springframework.context.event.ApplicationEventMulticaster delegatedMulticaster)
OsgiBundleApplicationContextEventMulticasterAdapter instance.delegatedMulticaster - public void addApplicationListener(OsgiBundleApplicationContextListener osgiListener)
addApplicationListener in interface OsgiBundleApplicationContextEventMulticasterosgiListener - the listener to addpublic void multicastEvent(OsgiBundleApplicationContextEvent osgiEvent)
OsgiBundleApplicationContextEventMulticastermulticastEvent in interface OsgiBundleApplicationContextEventMulticasterosgiEvent - the event to multicastpublic void removeAllListeners()
OsgiBundleApplicationContextEventMulticasterremoveAllListeners in interface OsgiBundleApplicationContextEventMulticasterpublic void removeApplicationListener(OsgiBundleApplicationContextListener osgiListener)
removeApplicationListener in interface OsgiBundleApplicationContextEventMulticasterosgiListener - the listener to removeCopyright © 2006–2017. All rights reserved.