org.springframework.context.event
Interface ApplicationEventMulticaster

All Known Implementing Classes:
ApplicationEventMulticasterImpl

public interface ApplicationEventMulticaster
extends ApplicationListener

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

Author:
Rod Johnson

Method Summary
 voidaddApplicationListener(ApplicationListener listener)
          Add a listener to be notified of all events
 voidremoveAllListeners()
          Remove all listeners registered with this multicaster.
 voidremoveApplicationListener(ApplicationListener listener)
          Remove a listener in the notification list]

Methods inherited from interface org.springframework.context.ApplicationListener
onApplicationEvent

Method Detail

addApplicationListener

public void addApplicationListener(ApplicationListener listener)
Add a listener to be notified of all events
Parameters:
listener - listener to add

removeAllListeners

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

removeApplicationListener

public void removeApplicationListener(ApplicationListener listener)
Remove a listener in the notification list]
Parameters:
listener - listener to remove