当前页面:
在线文档首页 >
Spring Framework 1.2.9 API 文档英文版
SimpleApplicationEventMulticaster (Spring Framework) - Spring Framework 1.2.9 API 文档英文版
org.springframework.context.event
Class SimpleApplicationEventMulticaster
java.lang.Object
org.springframework.context.event.AbstractApplicationEventMulticaster
org.springframework.context.event.SimpleApplicationEventMulticaster
- All Implemented Interfaces:
- ApplicationEventMulticaster
public class SimpleApplicationEventMulticaster
- extends AbstractApplicationEventMulticaster
Simple implementation of the ApplicationEventMulticaster interface.
Multicasts all events to all registered listeners, leaving it up to
the listeners to ignore events that they are not interested in.
Listeners will usually perform corresponding instanceof
checks on the passed-in event object.
All listeners are invoked in the calling thread. This allows the danger of
a rogue listener blocking the entire application, but adds minimal overhead.
An alternative implementation could be more sophisticated in both these respects.
- Author:
- Rod Johnson, Juergen Hoeller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleApplicationEventMulticaster
public SimpleApplicationEventMulticaster()
multicastEvent
public void multicastEvent(ApplicationEvent event)
- Description copied from interface:
ApplicationEventMulticaster
- Multicast the given application event to appropriate listeners.
- Parameters:
event
- the event to multicast
Copyright (c) 2002-2007 The Spring Framework Project.