org.springframework.context.event

## 类 EventListenerMethodProcessor

- java.lang.Object
- - org.springframework.context.event.EventListenerMethodProcessor

- 所有已实现的接口:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.SmartInitializingSingleton, ApplicationContextAware

      public class EventListenerMethodProcessor
      extends Object
      implements org.springframework.beans.factory.SmartInitializingSingleton, ApplicationContextAware

  Registers `EventListener` methods as individual `ApplicationListener` instances.
  从以下版本开始:
    4.2
  作者:
    Stephane Nicoll, Juergen Hoeller

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected Log` | `logger`

  - ### 构造器概要

    构造器
    构造器和说明
    `EventListenerMethodProcessor()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `afterSingletonsInstantiated()`
    `protected List<EventListenerFactory>` | `getEventListenerFactories()` Return the `EventListenerFactory` instances to use to handle `EventListener` annotated methods.
    `protected void` | `processBean(List<EventListenerFactory> factories, String beanName, Class<?> targetType)`
    `void` | `setApplicationContext(ApplicationContext applicationContext)` Set the ApplicationContext that this object runs in.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### logger

          protected final Log logger

  - ### 构造器详细资料

    - #### EventListenerMethodProcessor

          public EventListenerMethodProcessor()

  - ### 方法详细资料

    - #### setApplicationContext

          public void setApplicationContext(ApplicationContext applicationContext)

      从接口复制的说明: `ApplicationContextAware`
      Set the ApplicationContext that this object runs in. Normally this call will be used to initialize the object.

      Invoked after population of normal bean properties but before an init callback such as `InitializingBean.afterPropertiesSet()` or a custom init-method. Invoked after `ResourceLoaderAware.setResourceLoader(org.springframework.core.io.ResourceLoader)`, `ApplicationEventPublisherAware.setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher)` and `MessageSourceAware`, if applicable.

      指定者:
        `setApplicationContext` 在接口中 `ApplicationContextAware`
      参数:
        `applicationContext` - the ApplicationContext object to be used by this object
      另请参阅:
        `BeanInitializationException`

    - #### afterSingletonsInstantiated

          public void afterSingletonsInstantiated()

      指定者:
        `afterSingletonsInstantiated` 在接口中 `org.springframework.beans.factory.SmartInitializingSingleton`

    - #### getEventListenerFactories

          protected List<EventListenerFactory> getEventListenerFactories()

      Return the `EventListenerFactory` instances to use to handle `EventListener` annotated methods.

    - #### processBean

          protected void processBean(List<EventListenerFactory> factories,
                                     String beanName,
                                     Class<?> targetType)