Package org.springframework.context.event
@NullMarked
package org.springframework.context.event
Support classes for application events, like standard context events.
To be supported by all major application context implementations.
-
ClassDescriptionAbstract 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.Event raised when anApplicationContextgets closed.Event raised when anApplicationContextgets paused.Event raised when anApplicationContextgets initialized or refreshed.Event raised when anApplicationContextgets restarted.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.RegistersEventListenermethods as individualApplicationListenerinstances.Interceptorthat 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.