org.springframework.context

## 类 ApplicationEvent

- java.lang.Object
- - java.util.EventObject
  - - org.springframework.context.ApplicationEvent

- 所有已实现的接口:
    Serializable
  直接已知子类:
    ApplicationContextEvent, PayloadApplicationEvent

      public abstract class ApplicationEvent
      extends EventObject

  Class to be extended by all application events. Abstract as it doesn't make sense for generic events to be published directly.
  作者:
    Rod Johnson, Juergen Hoeller
  另请参阅:
    序列化表格

- - ### 字段概要

    - ### 从类继承的字段 java.util.EventObject

      `source`

  - ### 构造器概要

    构造器
    构造器和说明
    `ApplicationEvent(Object source)` Create a new ApplicationEvent.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `long` | `getTimestamp()` Return the system time in milliseconds when the event happened.

    - ### 从类继承的方法 java.util.EventObject

      `getSource, toString`

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

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

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

    - #### ApplicationEvent

          public ApplicationEvent(Object source)

      Create a new ApplicationEvent.
      参数:
        `source` - the object on which the event initially occurred (never `null`)

  - ### 方法详细资料

    - #### getTimestamp

          public final long getTimestamp()

      Return the system time in milliseconds when the event happened.