org.springframework.context.event

## 类 ApplicationContextEvent

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

- 所有已实现的接口:
    Serializable
  直接已知子类:
    ContextClosedEvent, ContextRefreshedEvent, ContextStartedEvent, ContextStoppedEvent

      public abstract class ApplicationContextEvent
      extends ApplicationEvent

  Base class for events raised for an `ApplicationContext`.
  从以下版本开始:
    2.5
  作者:
    Juergen Hoeller
  另请参阅:
    序列化表格

- - ### 字段概要

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

      `source`

  - ### 构造器概要

    构造器
    构造器和说明
    `ApplicationContextEvent(ApplicationContext source)` Create a new ContextStartedEvent.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `ApplicationContext` | `getApplicationContext()` Get the `ApplicationContext` that the event was raised for.

    - ### 从类继承的方法 org.springframework.context.ApplicationEvent

      `getTimestamp`

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

      `getSource, toString`

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

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

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

    - #### ApplicationContextEvent

          public ApplicationContextEvent(ApplicationContext source)

      Create a new ContextStartedEvent.
      参数:
        `source` - the `ApplicationContext` that the event is raised for (must not be `null`)

  - ### 方法详细资料

    - #### getApplicationContext

          public final ApplicationContext getApplicationContext()

      Get the `ApplicationContext` that the event was raised for.