| 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. | 
| org.springframework.scheduling.annotation | Java 5 annotation for asynchronous method execution. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | ConfigurableApplicationContext. addApplicationListener(ApplicationListener<?> listener)Add a new ApplicationListener that will be notified on context events
 such as context refresh and context shutdown. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | GenericApplicationListenerExtended variant of the standard  ApplicationListenerinterface,
 exposing further metadata such as the supported event and source type. | 
| interface  | SmartApplicationListenerExtended variant of the standard  ApplicationListenerinterface,
 exposing further metadata such as the supported event and source type. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ApplicationListenerMethodAdapterGenericApplicationListeneradapter that delegates the processing of
 an event to anEventListenerannotated method. | 
| class  | GenericApplicationListenerAdapterGenericApplicationListeneradapter that determines supported event types
 through introspecting the generically declared type of the target listener. | 
| class  | SourceFilteringListenerApplicationListenerdecorator that filters
 events from a specified event source, invoking its delegate listener for
 matchingApplicationEventobjects only. | 
| Modifier and Type | Method and Description | 
|---|---|
| ApplicationListener<?> | EventListenerFactory. createApplicationListener(String beanName,
                         Class<?> type,
                         Method method)Create an  ApplicationListenerfor the specified method. | 
| ApplicationListener<?> | DefaultEventListenerFactory. createApplicationListener(String beanName,
                         Class<?> type,
                         Method method) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected Collection<ApplicationListener<?>> | AbstractApplicationEventMulticaster. getApplicationListeners()Return a Collection containing all ApplicationListeners. | 
| protected Collection<ApplicationListener<?>> | AbstractApplicationEventMulticaster. getApplicationListeners(ApplicationEvent event,
                       org.springframework.core.ResolvableType eventType)Return a Collection of ApplicationListeners matching the given
 event type. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | ApplicationEventMulticaster. addApplicationListener(ApplicationListener<?> listener)Add a listener to be notified of all events. | 
| void | AbstractApplicationEventMulticaster. addApplicationListener(ApplicationListener<?> listener) | 
| protected void | SimpleApplicationEventMulticaster. invokeListener(ApplicationListener<?> listener,
              ApplicationEvent event)Invoke the given listener with the given event. | 
| void | ApplicationEventMulticaster. removeApplicationListener(ApplicationListener<?> listener)Remove a listener from the notification list. | 
| void | AbstractApplicationEventMulticaster. removeApplicationListener(ApplicationListener<?> listener) | 
| protected boolean | AbstractApplicationEventMulticaster. supportsEvent(ApplicationListener<?> listener,
             org.springframework.core.ResolvableType eventType,
             Class<?> sourceType)Determine whether the given listener supports the given event. | 
| Constructor and Description | 
|---|
| GenericApplicationListenerAdapter(ApplicationListener<?> delegate)Create a new GenericApplicationListener for the given delegate. | 
| SourceFilteringListener(Object source,
                       ApplicationListener<?> delegate)Create a SourceFilteringListener for the given event source. | 
| Modifier and Type | Method and Description | 
|---|---|
| Collection<ApplicationListener<?>> | AbstractApplicationContext. getApplicationListeners()Return the list of statically specified ApplicationListeners. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | AbstractApplicationContext. addApplicationListener(ApplicationListener<?> listener) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ScheduledAnnotationBeanPostProcessorBean post-processor that registers methods annotated with @ Scheduledto be invoked by aTaskScheduleraccording
 to the "fixedRate", "fixedDelay", or "cron" expression provided via the annotation. |