org.springframework.context.event

## 类 DefaultEventListenerFactory

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

- 所有已实现的接口:
    EventListenerFactory, org.springframework.core.Ordered

      public class DefaultEventListenerFactory
      extends Object
      implements EventListenerFactory, org.springframework.core.Ordered

  Default `EventListenerFactory` implementation that supports the regular `EventListener` annotation.

  Used as "catch-all" implementation by default.

  从以下版本开始:
    4.2
  作者:
    Stephane Nicoll

- - ### 字段概要

    - ### 从接口继承的字段 org.springframework.core.Ordered

      `HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE`

  - ### 构造器概要

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

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `ApplicationListener<?>` | `createApplicationListener(String beanName, Class<?> type, Method method)` Create an `ApplicationListener` for the specified method.
    `int` | `getOrder()`
    `void` | `setOrder(int order)`
    `boolean` | `supportsMethod(Method method)` Specify if this factory supports the specified `Method`.

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

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

- - ### 构造器详细资料

    - #### DefaultEventListenerFactory

          public DefaultEventListenerFactory()

  - ### 方法详细资料

    - #### setOrder

          public void setOrder(int order)

    - #### getOrder

          public int getOrder()

      指定者:
        `getOrder` 在接口中 `org.springframework.core.Ordered`

    - #### supportsMethod

          public boolean supportsMethod(Method method)

      从接口复制的说明: `EventListenerFactory`
      Specify if this factory supports the specified `Method`.
      指定者:
        `supportsMethod` 在接口中 `EventListenerFactory`
      参数:
        `method` - an `EventListener` annotated method
      返回:
        `true` if this factory supports the specified method

    - #### createApplicationListener

          public ApplicationListener<?> createApplicationListener(String beanName,
                                                                  Class<?> type,
                                                                  Method method)

      从接口复制的说明: `EventListenerFactory`
      Create an `ApplicationListener` for the specified method.
      指定者:
        `createApplicationListener` 在接口中 `EventListenerFactory`
      参数:
        `beanName` - the name of the bean
        `type` - the target type of the instance
        `method` - the `EventListener` annotated method
      返回:
        an application listener, suitable to invoke the specified method