org.springframework.context.annotation

## 类 LoadTimeWeavingConfiguration

- java.lang.Object
- - org.springframework.context.annotation.LoadTimeWeavingConfiguration

- 所有已实现的接口:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, ImportAware

      @Configuration
      public class LoadTimeWeavingConfiguration
      extends Object
      implements ImportAware, org.springframework.beans.factory.BeanClassLoaderAware

  `@Configuration` class that registers a `LoadTimeWeaver` bean.

  This configuration class is automatically imported when using the `EnableLoadTimeWeaving` annotation. See `@EnableLoadTimeWeaving` javadoc for complete usage details.

  从以下版本开始:
    3.1
  作者:
    Chris Beams
  另请参阅:
    `LoadTimeWeavingConfigurer`, `ConfigurableApplicationContext.LOAD_TIME_WEAVER_BEAN_NAME`

- - ### 构造器概要

    构造器
    构造器和说明
    `LoadTimeWeavingConfiguration()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `LoadTimeWeaver` | `loadTimeWeaver()`
    `void` | `setBeanClassLoader(ClassLoader beanClassLoader)`
    `void` | `setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)` Set the annotation metadata of the importing @`Configuration` class.
    `void` | `setLoadTimeWeavingConfigurer(LoadTimeWeavingConfigurer ltwConfigurer)`

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

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

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

    - #### LoadTimeWeavingConfiguration

          public LoadTimeWeavingConfiguration()

  - ### 方法详细资料

    - #### setImportMetadata

          public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)

      从接口复制的说明: `ImportAware`
      Set the annotation metadata of the importing @`Configuration` class.
      指定者:
        `setImportMetadata` 在接口中 `ImportAware`

    - #### setLoadTimeWeavingConfigurer

          @Autowired(required=false)
          public void setLoadTimeWeavingConfigurer(LoadTimeWeavingConfigurer ltwConfigurer)

    - #### setBeanClassLoader

          public void setBeanClassLoader(ClassLoader beanClassLoader)

      指定者:
        `setBeanClassLoader` 在接口中 `org.springframework.beans.factory.BeanClassLoaderAware`

    - #### loadTimeWeaver

          @Bean(name="loadTimeWeaver")
           @Role(value=2)
          public LoadTimeWeaver loadTimeWeaver()