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 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 removeCopyright © 2006–2017. All rights reserved.