程序包 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 ofApplicationListener
objects, and publish events to them.EventListenerFactory Strategy interface for creatingApplicationListener
for methods annotated withEventListener
.GenericApplicationListener Extended variant of the standardApplicationListener
interface, exposing further metadata such as the supported event and source type.SmartApplicationListener Extended variant of the standardApplicationListener
interface, exposing further metadata such as the supported event and source type.类概要 类 说明 AbstractApplicationEventMulticaster Abstract implementation of theApplicationEventMulticaster
interface, providing the basic listener registration facility.ApplicationContextEvent Base class for events raised for anApplicationContext
.ApplicationListenerMethodAdapter GenericApplicationListener
adapter that delegates the processing of an event to anEventListener
annotated method.ContextClosedEvent Event raised when anApplicationContext
gets closed.ContextRefreshedEvent Event raised when anApplicationContext
gets initialized or refreshed.ContextStartedEvent Event raised when anApplicationContext
gets started.ContextStoppedEvent Event raised when anApplicationContext
gets stopped.DefaultEventListenerFactory DefaultEventListenerFactory
implementation that supports the regularEventListener
annotation.EventListenerMethodProcessor RegistersEventListener
methods as individualApplicationListener
instances.EventPublicationInterceptor Interceptor
that publishes anApplicationEvent
to allApplicationListeners
registered with anApplicationEventPublisher
after each successful method invocation.GenericApplicationListenerAdapter GenericApplicationListener
adapter that determines supported event types through introspecting the generically declared type of the target listener.SimpleApplicationEventMulticaster Simple implementation of theApplicationEventMulticaster
interface.SourceFilteringListener ApplicationListener
decorator that filters events from a specified event source, invoking its delegate listener for matchingApplicationEvent
objects only.注释类型概要 注释类型 说明 EventListener Annotation that marks a method as a listener for application events.