## 接口的使用
org.springframework.beans.factory.BeanFactoryAware

- 使用BeanFactoryAware的程序包
  程序包 | 说明
  --- | ---
  org.springframework.beans.factory.annotation | Support package for annotation-driven bean configuration.
  org.springframework.beans.factory.config | SPI interfaces and configuration-related convenience classes for bean factories.
  org.springframework.beans.factory.serviceloader | Support package for the Java 6 ServiceLoader facility.
  org.springframework.beans.factory.support | Classes supporting the `org.springframework.beans.factory` package.
  org.springframework.beans.factory.wiring | Mechanism to determine bean wiring metadata from a bean instance.

- - ### org.springframework.beans.factory.annotation中BeanFactoryAware的使用

    实现BeanFactoryAware的org.springframework.beans.factory.annotation中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `AutowiredAnnotationBeanPostProcessor` `BeanPostProcessor` implementation that autowires annotated fields, setter methods and arbitrary config methods.
    `class` | `QualifierAnnotationAutowireCandidateResolver` `AutowireCandidateResolver` implementation that matches bean definition qualifiers against `qualifier annotations` on the field or parameter to be autowired.
    `class` | `RequiredAnnotationBeanPostProcessor` `BeanPostProcessor` implementation that enforces required JavaBean properties to have been configured.

  - ### org.springframework.beans.factory.config中BeanFactoryAware的使用

    实现BeanFactoryAware的org.springframework.beans.factory.config中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `AbstractFactoryBean<T>` Simple template superclass for `FactoryBean` implementations that creates a singleton or a prototype object, depending on a flag.
    `class` | `ListFactoryBean` Simple factory for shared List instances.
    `class` | `MapFactoryBean` Simple factory for shared Map instances.
    `class` | `MethodInvokingBean` Simple method invoker bean: just invoking a target method, not expecting a result to expose to the container (in contrast to `MethodInvokingFactoryBean`).
    `class` | `MethodInvokingFactoryBean` `FactoryBean` which returns a value which is the result of a static or instance method invocation.
    `class` | `ObjectFactoryCreatingFactoryBean` A `FactoryBean` implementation that returns a value which is an `ObjectFactory` that in turn returns a bean sourced from a `BeanFactory`.
    `class` | `PlaceholderConfigurerSupport` Abstract base class for property resource configurers that resolve placeholders in bean definition property values.
    `class` | `PreferencesPlaceholderConfigurer` Subclass of PropertyPlaceholderConfigurer that supports JDK 1.4's Preferences API (`java.util.prefs`).
    `class` | `PropertyPathFactoryBean` `FactoryBean` that evaluates a property path on a given target object.
    `class` | `PropertyPlaceholderConfigurer` `PlaceholderConfigurerSupport` subclass that resolves ${...} placeholders against `local` `properties` and/or system properties and environment variables.
    `class` | `ProviderCreatingFactoryBean` A `FactoryBean` implementation that returns a value which is a JSR-330 `Provider` that in turn returns a bean sourced from a `BeanFactory`.
    `class` | `ServiceLocatorFactoryBean` A `FactoryBean` implementation that takes an interface which must have one or more methods with the signatures `MyType xxx()` or `MyType xxx(MyIdType id)` (typically, `MyService getService()` or `MyService getService(String id)`) and creates a dynamic proxy which implements that interface, delegating to an underlying `BeanFactory`.
    `class` | `SetFactoryBean` Simple factory for shared Set instances.

  - ### org.springframework.beans.factory.serviceloader中BeanFactoryAware的使用

    实现BeanFactoryAware的org.springframework.beans.factory.serviceloader中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `AbstractServiceLoaderBasedFactoryBean` Abstract base class for FactoryBeans operating on the JDK 1.6 `ServiceLoader` facility.
    `class` | `ServiceFactoryBean` `FactoryBean` that exposes the 'primary' service for the configured service class, obtained through the JDK 1.6 `ServiceLoader` facility.
    `class` | `ServiceListFactoryBean` `FactoryBean` that exposes all services for the configured service class, represented as a List of service objects, obtained through the JDK 1.6 `ServiceLoader` facility.
    `class` | `ServiceLoaderFactoryBean` `FactoryBean` that exposes the JDK 1.6 `ServiceLoader` for the configured service class.

  - ### org.springframework.beans.factory.support中BeanFactoryAware的使用

    实现BeanFactoryAware的org.springframework.beans.factory.support中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `GenericTypeAwareAutowireCandidateResolver` Basic `AutowireCandidateResolver` that performs a full generic type match with the candidate's type if the dependency is declared as a generic type (e.g.

  - ### org.springframework.beans.factory.wiring中BeanFactoryAware的使用

    实现BeanFactoryAware的org.springframework.beans.factory.wiring中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `BeanConfigurerSupport` Convenient base class for bean configurers that can perform Dependency Injection on objects (however they may be created).