接口 ApplicationEventPublisher
- 所有已知实现类:
AbstractApplicationContext,AbstractRefreshableApplicationContext,AbstractRefreshableConfigApplicationContext,AbstractXmlApplicationContext,AnnotationConfigApplicationContext,ClassPathXmlApplicationContext,FileSystemXmlApplicationContext,GenericApplicationContext,GenericXmlApplicationContext,StandardApplicationContext,StaticApplicationContext
public interface ApplicationEventPublisher
Interface that encapsulates event publication functionality.
Serves as a super-interface for ApplicationContext.
- 从以下版本开始:
- 2018-09-09 21:26
- 作者:
- TODAY
- 另请参阅:
-
方法概要
修饰符和类型方法说明voidpublishEvent(Object event) Notify all matching listeners registered with this application of an event.
-
方法详细资料
-
publishEvent
Notify all matching listeners registered with this application of an event.Such an event publication step is effectively a hand-off to the multicaster and does not imply synchronous/asynchronous execution or even immediate execution at all. Event listeners are encouraged to be as efficient as possible, individually using asynchronous execution for longer-running and potentially blocking operations.
- 参数:
event- the event to publish- 另请参阅:
-