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

- 使用DisposableBean的程序包
  程序包 | 说明
  --- | ---
  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.config中DisposableBean的使用

    实现DisposableBean的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` | `ObjectFactoryCreatingFactoryBean` A `FactoryBean` implementation that returns a value which is an `ObjectFactory` that in turn returns a bean sourced from a `BeanFactory`.
    `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` | `SetFactoryBean` Simple factory for shared Set instances.

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

    实现DisposableBean的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中DisposableBean的使用

    参数类型为DisposableBean的org.springframework.beans.factory.support中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected void` | DefaultSingletonBeanRegistry.`destroyBean(String beanName, DisposableBean bean)` 销毁bean的依赖关系
    `void` | DefaultSingletonBeanRegistry.`registerDisposableBean(String beanName, DisposableBean bean)` Add the given bean to the list of disposable beans in this registry.

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

    实现DisposableBean的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).