程序包 org.springframework.context.event
Support classes for application events, like standard context events. To be supported by all major application context implementations.
接口概要 接口 说明 ApplicationEventMulticaster Interface to be implemented by objects that can manage a number ofApplicationListenerobjects and publish events to them.EventListenerFactory Strategy interface for creatingApplicationListenerfor methods annotated withEventListener.GenericApplicationListener Extended variant of the standardApplicationListenerinterface, exposing further metadata such as the supported event and source type.SmartApplicationListener Extended variant of the standardApplicationListenerinterface, exposing further metadata such as the supported event and source type.类概要 类 说明 AbstractApplicationEventMulticaster Abstract implementation of theApplicationEventMulticasterinterface, providing the basic listener registration facility.ApplicationContextEvent Base class for events raised for anApplicationContext.ApplicationListenerMethodAdapter GenericApplicationListeneradapter that delegates the processing of an event to anEventListenerannotated method.ContextClosedEvent Event raised when anApplicationContextgets closed.ContextRefreshedEvent Event raised when anApplicationContextgets initialized or refreshed.ContextStartedEvent Event raised when anApplicationContextgets started.ContextStoppedEvent Event raised when anApplicationContextgets stopped.DefaultEventListenerFactory DefaultEventListenerFactoryimplementation that supports the regularEventListenerannotation.EventListenerMethodProcessor RegistersEventListenermethods as individualApplicationListenerinstances.EventPublicationInterceptor Interceptorthat publishes anApplicationEventto allApplicationListenersregistered with anApplicationEventPublisherafter each successful method invocation.GenericApplicationListenerAdapter GenericApplicationListeneradapter that determines supported event types through introspecting the generically declared type of the target listener.SimpleApplicationEventMulticaster Simple implementation of theApplicationEventMulticasterinterface.SourceFilteringListener ApplicationListenerdecorator that filters events from a specified event source, invoking its delegate listener for matchingApplicationEventobjects only.注释类型概要 注释类型 说明 EventListener Annotation that marks a method as a listener for application events.