org.springframework.beans.factory

## 接口 BeanClassLoaderAware

- 所有超级接口:
    Aware
  所有已知实现类:
    AbstractFactoryBean, AbstractServiceLoaderBasedFactoryBean, CustomAutowireConfigurer, CustomScopeConfigurer, FieldRetrievingFactoryBean, ListFactoryBean, MapFactoryBean, MethodInvokingBean, MethodInvokingFactoryBean, ObjectFactoryCreatingFactoryBean, ProviderCreatingFactoryBean, ServiceFactoryBean, ServiceListFactoryBean, ServiceLoaderFactoryBean, SetFactoryBean

      public interface BeanClassLoaderAware
      extends Aware

  Callback that allows a bean to be aware of the bean `class loader`; that is, the class loader used by the present bean factory to load bean classes.

  This is mainly intended to be implemented by framework classes which have to pick up application classes by name despite themselves potentially being loaded from a shared class loader.

  For a list of all bean lifecycle methods, see the `BeanFactory javadocs`.

  从以下版本开始:
    2.0
  作者:
    Juergen Hoeller, Chris Beams
  另请参阅:
    `BeanNameAware`, `BeanFactoryAware`, `InitializingBean`

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `setBeanClassLoader(ClassLoader classLoader)` Callback that supplies the bean `class loader` to a bean instance.

- - ### 方法详细资料

    - #### setBeanClassLoader

          void setBeanClassLoader(ClassLoader classLoader)

      Callback that supplies the bean `class loader` to a bean instance.

      Invoked after the population of normal bean properties but before an initialization callback such as `InitializingBean's` `InitializingBean.afterPropertiesSet()` method or a custom init-method.

      参数:
        `classLoader` - the owning class loader