| Package | Description | 
|---|---|
| org.springframework.context | This package builds on the beans package to add support for
 message sources and for the Observer design pattern, and the
 ability for application objects to obtain resources using a
 consistent API. | 
| org.springframework.context.event | Support classes for application events, like standard context events. | 
| org.springframework.context.support | Classes supporting the org.springframework.context package,
 such as abstract base classes for ApplicationContext
 implementations and a MessageSource implementation. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | ApplicationListener<E extends ApplicationEvent>Interface to be implemented by application event listeners. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | PayloadApplicationEvent<T>An  ApplicationEventthat carries an arbitrary payload. | 
| Modifier and Type | Method and Description | 
|---|---|
| default void | ApplicationEventPublisher. publishEvent(ApplicationEvent event)Notify all matching listeners registered with this
 application of an application event. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ApplicationContextEventBase class for events raised for an  ApplicationContext. | 
| class  | ContextClosedEventEvent raised when an  ApplicationContextgets closed. | 
| class  | ContextRefreshedEventEvent raised when an  ApplicationContextgets initialized or refreshed. | 
| class  | ContextStartedEventEvent raised when an  ApplicationContextgets started. | 
| class  | ContextStoppedEventEvent raised when an  ApplicationContextgets stopped. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected Collection<ApplicationListener<?>> | AbstractApplicationEventMulticaster. getApplicationListeners(ApplicationEvent event,
                       org.springframework.core.ResolvableType eventType)Return a Collection of ApplicationListeners matching the given
 event type. | 
| protected void | SimpleApplicationEventMulticaster. invokeListener(ApplicationListener<?> listener,
              ApplicationEvent event)Invoke the given listener with the given event. | 
| void | SimpleApplicationEventMulticaster. multicastEvent(ApplicationEvent event) | 
| void | ApplicationEventMulticaster. multicastEvent(ApplicationEvent event)Multicast the given application event to appropriate listeners. | 
| void | SimpleApplicationEventMulticaster. multicastEvent(ApplicationEvent event,
              org.springframework.core.ResolvableType eventType) | 
| void | ApplicationEventMulticaster. multicastEvent(ApplicationEvent event,
              org.springframework.core.ResolvableType eventType)Multicast the given application event to appropriate listeners. | 
| void | ApplicationListenerMethodAdapter. onApplicationEvent(ApplicationEvent event) | 
| void | SourceFilteringListener. onApplicationEvent(ApplicationEvent event) | 
| void | GenericApplicationListenerAdapter. onApplicationEvent(ApplicationEvent event) | 
| protected void | SourceFilteringListener. onApplicationEventInternal(ApplicationEvent event)Actually process the event, after having filtered according to the
 desired event source already. | 
| void | ApplicationListenerMethodAdapter. processEvent(ApplicationEvent event)Process the specified  ApplicationEvent, checking if the condition
 matches and handling a non-null result, if any. | 
| protected Object[] | ApplicationListenerMethodAdapter. resolveArguments(ApplicationEvent event)Resolve the method arguments to use for the specified  ApplicationEvent. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | SmartApplicationListener. supportsEventType(Class<? extends ApplicationEvent> eventType)Determine whether this listener actually supports the given event type. | 
| boolean | SourceFilteringListener. supportsEventType(Class<? extends ApplicationEvent> eventType) | 
| boolean | GenericApplicationListenerAdapter. supportsEventType(Class<? extends ApplicationEvent> eventType) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | AbstractApplicationContext. publishEvent(ApplicationEvent event)Publish the given event to all listeners. |