程序包 cn.taketoday.context.event
package cn.taketoday.context.event
Event System
- 作者:
- TODAY 2021/3/27 10:35
-
类说明Abstract implementation of the
ApplicationEventMulticasterinterface, providing the basic listener registration facility.Base class for events raised for anApplicationContext.Interface to be implemented by objects that can manage a number ofApplicationListenerobjects and publish events to them.GenericApplicationListeneradapter that delegates the processing of an event to anEventListenerannotated method.When closeApplicationContextwill publish this eventEvent raised when anApplicationContextgets initialized or refreshed.Event raised when anApplicationContextgets started.Event raised when anApplicationContextgets stopped.DefaultEventListenerFactoryimplementation that supports the regularEventListenerannotation.Annotation that marks a method as a listener for application events.Strategy interface for creatingApplicationListenerfor methods annotated withEventListener.Process @EventListener annotated on a methodInterceptorthat publishes anApplicationEventto allApplicationListenersregistered with anApplicationEventPublisherafter each successful method invocation.Extended variant of the standardApplicationListenerinterface, exposing further metadata such as the supported event and source type.GenericApplicationListeneradapter that determines supported event types through introspecting the generically declared type of the target listener.Simple implementation of theApplicationEventMulticasterinterface.Extended variant of the standardApplicationListenerinterface, exposing further metadata such as the supported event and source type.ApplicationListenerdecorator that filters events from a specified event source, invoking its delegate listener for matchingApplicationEventobjects only.