Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » context » event » [javadoc | source]
org.springframework.context.event
public interface: ApplicationEventMulticaster [javadoc | source]

All Known Implementing Classes:
    SimpleApplicationEventMulticaster, AbstractApplicationEventMulticaster

Interface to be implemented by objects that can manage a number of ApplicationListeners, and publish events to them. An example of such an object is an ApplicationEventPublisher, typically the ApplicationContext, which can use an ApplicationEventMulticaster as a helper to publish events to listeners.
Method from org.springframework.context.event.ApplicationEventMulticaster Summary:
addApplicationListener,   multicastEvent,   removeAllListeners,   removeApplicationListener
Method from org.springframework.context.event.ApplicationEventMulticaster Detail:
 public  void addApplicationListener(ApplicationListener listener)
    Add a listener to be notified of all events.
 public  void multicastEvent(ApplicationEvent event)
    Multicast the given application event to appropriate listeners.
 public  void removeAllListeners()
    Remove all listeners registered with this multicaster. It will perform no action on event notification until more listeners are registered.
 public  void removeApplicationListener(ApplicationListener listener)
    Remove a listener from the notification list.