ome.services.messages
Class GlobalMulticaster

java.lang.Object
  extended by ome.services.messages.GlobalMulticaster
All Implemented Interfaces:
org.springframework.context.event.ApplicationEventMulticaster

public class GlobalMulticaster
extends Object
implements org.springframework.context.event.ApplicationEventMulticaster

Global 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.

See Also:
OmeroContext, OmeroContext.publishEvent(ApplicationEvent), OmeroContext.onRefresh()

Constructor Summary
GlobalMulticaster()
          Keeps track of which instance this is.
 
Method Summary
 void addApplicationListener(org.springframework.context.ApplicationListener 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalMulticaster

public GlobalMulticaster()
Keeps track of which instance this is. Only the first instance will actively call multicastEvent(ApplicationEvent), but all instances cann add to the static list of listeners.

Method Detail

addApplicationListener

public void addApplicationListener(org.springframework.context.ApplicationListener arg0)
Specified by:
addApplicationListener in interface org.springframework.context.event.ApplicationEventMulticaster

multicastEvent

public void multicastEvent(org.springframework.context.ApplicationEvent arg0)
Multicast only if this instance was the first created.

Specified by:
multicastEvent in interface org.springframework.context.event.ApplicationEventMulticaster

removeAllListeners

public void removeAllListeners()
Specified by:
removeAllListeners in interface org.springframework.context.event.ApplicationEventMulticaster

removeApplicationListener

public void removeApplicationListener(org.springframework.context.ApplicationListener arg0)
Specified by:
removeApplicationListener in interface org.springframework.context.event.ApplicationEventMulticaster


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

Copyright © 2009 The University of Dundee. All Rights Reserved.