public class GlobalMulticaster extends Object implements org.springframework.context.event.ApplicationEventMulticaster, org.springframework.beans.factory.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(org.springframework.context.ApplicationListener arg0) |
void |
addApplicationListenerBean(String arg0) |
void |
multicastEvent(org.springframework.context.ApplicationEvent arg0)
Multicast only if this instance was the first created.
|
void |
removeAllListeners() |
void |
removeApplicationListener(org.springframework.context.ApplicationListener arg0) |
void |
removeApplicationListenerBean(String arg0) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
public GlobalMulticaster()
multicastEvent(ApplicationEvent), but all
instances cann add to the static list of
listeners.public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void addApplicationListener(org.springframework.context.ApplicationListener arg0)
addApplicationListener in interface org.springframework.context.event.ApplicationEventMulticasterpublic void multicastEvent(org.springframework.context.ApplicationEvent arg0)
multicastEvent in interface org.springframework.context.event.ApplicationEventMulticasterpublic void removeAllListeners()
removeAllListeners in interface org.springframework.context.event.ApplicationEventMulticasterpublic void removeApplicationListener(org.springframework.context.ApplicationListener arg0)
removeApplicationListener in interface org.springframework.context.event.ApplicationEventMulticasterpublic void addApplicationListenerBean(String arg0)
addApplicationListenerBean in interface org.springframework.context.event.ApplicationEventMulticasterpublic void removeApplicationListenerBean(String arg0)
removeApplicationListenerBean in interface org.springframework.context.event.ApplicationEventMulticaster
Version: 5.4.0-ice35-b74
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.