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 BeanFactoryAware
BeansException
public void addApplicationListener(ApplicationListener arg0)
addApplicationListener
in interface ApplicationEventMulticaster
public void multicastEvent(ApplicationEvent arg0)
multicastEvent
in interface ApplicationEventMulticaster
public void removeAllListeners()
removeAllListeners
in interface ApplicationEventMulticaster
public void removeApplicationListener(ApplicationListener arg0)
removeApplicationListener
in interface ApplicationEventMulticaster
public void addApplicationListenerBean(String arg0)
addApplicationListenerBean
in interface ApplicationEventMulticaster
public void removeApplicationListenerBean(String arg0)
removeApplicationListenerBean
in interface ApplicationEventMulticaster
Version: 5.2.0-ice35-b12
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.