## 接口的使用
org.springframework.context.ApplicationContextAware

- 使用ApplicationContextAware的程序包
  程序包 | 说明
  --- | ---
  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.
  org.springframework.validation.beanvalidation | Support classes for integrating a JSR-303 Bean Validation provider (such as Hibernate Validator) into a Spring ApplicationContext and in particular with Spring's data binding and validation APIs.

- - ### org.springframework.context.event中ApplicationContextAware的使用

    实现ApplicationContextAware的org.springframework.context.event中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `EventListenerMethodProcessor` Registers `EventListener` methods as individual `ApplicationListener` instances.

  - ### org.springframework.context.support中ApplicationContextAware的使用

    实现ApplicationContextAware的org.springframework.context.support中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `ApplicationObjectSupport` Convenient superclass for application objects that want to be aware of the application context, e.g. for custom lookup of collaborating beans or for context-specific resource access.
    `class` | `LiveBeansView` Adapter for live beans view exposure, building a snapshot of current beans and their dependencies from either a local `ApplicationContext` (with a local `LiveBeansView` bean definition) or all registered ApplicationContexts (driven by the "spring.liveBeansView.mbeanDomain" environment property).

  - ### org.springframework.scheduling.annotation中ApplicationContextAware的使用

    实现ApplicationContextAware的org.springframework.scheduling.annotation中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `ScheduledAnnotationBeanPostProcessor` Bean post-processor that registers methods annotated with @`Scheduled` to be invoked by a `TaskScheduler` according to the "fixedRate", "fixedDelay", or "cron" expression provided via the annotation.

  - ### org.springframework.validation.beanvalidation中ApplicationContextAware的使用

    实现ApplicationContextAware的org.springframework.validation.beanvalidation中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `LocalValidatorFactoryBean` This is the central class for `javax.validation` (JSR-303) setup in a Spring application context: It bootstraps a `javax.validation.ValidationFactory` and exposes it through the Spring `Validator` interface as well as through the JSR-303 `Validator` interface and the `ValidatorFactory` interface itself.
    `class` | `OptionalValidatorFactoryBean` `LocalValidatorFactoryBean` subclass that simply turns `Validator` calls into no-ops in case of no Bean Validation provider being available.