public class GlobalMulticaster extends Object implements ApplicationEventMulticaster, BeanFactoryAware
ApplicationEventMulticaster which can be used to integrate
parent and child OmeroContext instances. A singleton, this instance
will delegate all method calls to a single static SimpleApplicationEventMulticaster.| Constructor and Description |
|---|
GlobalMulticaster()
Keeps track of which instance this is.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addApplicationListener(ApplicationListener arg0) |
void |
addApplicationListenerBean(String arg0) |
void |
multicastEvent(ApplicationEvent arg0)
Multicast only if this instance was the first created.
|
void |
removeAllListeners() |
void |
removeApplicationListener(ApplicationListener arg0) |
void |
removeApplicationListenerBean(String arg0) |
void |
setBeanFactory(BeanFactory beanFactory) |
public GlobalMulticaster()
multicastEvent(ApplicationEvent), but all
instances cann add to the static list of
listeners.public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory in interface BeanFactoryAwareBeansExceptionpublic void addApplicationListener(ApplicationListener arg0)
addApplicationListener in interface ApplicationEventMulticasterpublic void multicastEvent(ApplicationEvent arg0)
multicastEvent in interface ApplicationEventMulticasterpublic void removeAllListeners()
removeAllListeners in interface ApplicationEventMulticasterpublic void removeApplicationListener(ApplicationListener arg0)
removeApplicationListener in interface ApplicationEventMulticasterpublic void addApplicationListenerBean(String arg0)
addApplicationListenerBean in interface ApplicationEventMulticasterpublic void removeApplicationListenerBean(String arg0)
removeApplicationListenerBean in interface ApplicationEventMulticaster
Version: 5.2.1-ice35-b15
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.