org.springframework.context.event
Interface ApplicationEventMulticaster

All Known Implementing Classes:
SimpleApplicationEventMulticaster

public interface ApplicationEventMulticaster

Subinterface of ApplicationListener to be implemented by listeners that can broadcast events to other listeners.

Author:
Rod Johnson

Method Summary
 void addApplicationListener(ApplicationListener listener)
          Add a listener to be notified of all events.
 void multicastEvent(ApplicationEvent event)
          Multicast the given application event to appropriate listeners.
 void removeAllListeners()
          Remove all listeners registered with this multicaster.
 void removeApplicationListener(ApplicationListener listener)
          Remove a listener from the notification list.
 

Method Detail

addApplicationListener

public void addApplicationListener(ApplicationListener listener)
Add a listener to be notified of all events.

Parameters:
listener - the listener to add

removeApplicationListener

public void removeApplicationListener(ApplicationListener listener)
Remove a listener from the notification list.

Parameters:
listener - the listener to remove

removeAllListeners

public void removeAllListeners()
Remove all listeners registered with this multicaster. It will perform no action on event notification until more listeners are registered.


multicastEvent

public void multicastEvent(ApplicationEvent event)
Multicast the given application event to appropriate listeners.

Parameters:
event - the event to multicast


Copyright (C) 2003-2004 The Spring Framework Project.