Top Description Interfaces Annotations Classes
[default module]

Package org.springframework.context.event

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Support classes for application events, like standard context events. To be supported by all major application context implementations.

Interface Summary

Modifier and TypeInterface and Description
public interface
ApplicationEventMulticaster

Interface to be implemented by objects that can manage a number of ApplicationListener objects and publish events to them.

public interface
EventListenerFactory

Strategy interface for creating ApplicationListener for methods annotated with EventListener.

public interface
GenericApplicationListener

Extended variant of the standard ApplicationListener interface, exposing further metadata such as the supported event and source type.

public interface
SmartApplicationListener

Extended variant of the standard ApplicationListener interface, exposing further metadata such as the supported event and source type.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
EventListener

Annotation that marks a method as a listener for application events.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractApplicationEventMulticaster

Abstract implementation of the ApplicationEventMulticaster interface, providing the basic listener registration facility.

public abstract class
ApplicationContextEvent

Base class for events raised for an ApplicationContext.

public class
ApplicationListenerMethodAdapter

GenericApplicationListener adapter that delegates the processing of an event to an EventListener annotated method.

public class
ContextClosedEvent

Event raised when an ApplicationContext gets closed.

public class
ContextRefreshedEvent

Event raised when an ApplicationContext gets initialized or refreshed.

public class
ContextStartedEvent

Event raised when an ApplicationContext gets started.

public class
ContextStoppedEvent

Event raised when an ApplicationContext gets stopped.

public class
DefaultEventListenerFactory

Default EventListenerFactory implementation that supports the regular EventListener annotation.

pack-priv class
EventExpressionEvaluator

Utility class for handling SpEL expression parsing for application events.

public class
EventListenerMethodProcessor

Registers EventListener methods as individual ApplicationListener instances.

public class
EventPublicationInterceptor

Interceptor that publishes an ApplicationEvent to all ApplicationListeners registered with an ApplicationEventPublisher after each successful method invocation.

public class
GenericApplicationListenerAdapter

GenericApplicationListener adapter that determines supported event types through introspecting the generically declared type of the target listener.

pack-priv class
GenericApplicationListenerDelegate<
the specific ApplicationEvent subclass to listen to
E extends ApplicationEvent
>

A GenericApplicationListener implementation that supports a single event type.

public class
SimpleApplicationEventMulticaster

Simple implementation of the ApplicationEventMulticaster interface.

public class
SourceFilteringListener

org.springframework.context.ApplicationListener decorator that filters events from a specified event source, invoking its delegate listener for matching org.springframework.context.ApplicationEvent objects only.