org.springframework.context.event
Interface ApplicationEventMulticaster

All Known Implementing Classes:
SimpleApplicationEventMulticaster

public interface ApplicationEventMulticaster

Interface to be implemented by objects that can manage a number of ApplicationListeners, and publish events to them.

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.