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.BeanFactoryAware
org.springframework.beans.BeansException
public void addApplicationListener(org.springframework.context.ApplicationListener arg0)
addApplicationListener
in interface org.springframework.context.event.ApplicationEventMulticaster
public void multicastEvent(org.springframework.context.ApplicationEvent arg0)
multicastEvent
in interface org.springframework.context.event.ApplicationEventMulticaster
public void removeAllListeners()
removeAllListeners
in interface org.springframework.context.event.ApplicationEventMulticaster
public void removeApplicationListener(org.springframework.context.ApplicationListener arg0)
removeApplicationListener
in interface org.springframework.context.event.ApplicationEventMulticaster
public void addApplicationListenerBean(String arg0)
addApplicationListenerBean
in interface org.springframework.context.event.ApplicationEventMulticaster
public 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.