org.springframework.context.weaving

## 类 LoadTimeWeaverAwareProcessor

- java.lang.Object
- - org.springframework.context.weaving.LoadTimeWeaverAwareProcessor

- 所有已实现的接口:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor

      public class LoadTimeWeaverAwareProcessor
      extends Object
      implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.BeanFactoryAware

  `BeanPostProcessor` implementation that passes the context's default `LoadTimeWeaver` to beans that implement the `LoadTimeWeaverAware` interface.

  `Application contexts` will automatically register this with their underlying `bean factory`, provided that a default `LoadTimeWeaver` is actually available.

  Applications should not use this class directly.

  从以下版本开始:
    2.5
  作者:
    Juergen Hoeller
  另请参阅:
    `LoadTimeWeaverAware`, `ConfigurableApplicationContext.LOAD_TIME_WEAVER_BEAN_NAME`

- - ### 构造器概要

    构造器
    构造器和说明
    `LoadTimeWeaverAwareProcessor()` Create a new `LoadTimeWeaverAwareProcessor` that will auto-retrieve the `LoadTimeWeaver` from the containing `BeanFactory`, expecting a bean named `"loadTimeWeaver"`.
    `LoadTimeWeaverAwareProcessor(org.springframework.beans.factory.BeanFactory beanFactory)` Create a new `LoadTimeWeaverAwareProcessor`.
    `LoadTimeWeaverAwareProcessor(LoadTimeWeaver loadTimeWeaver)` Create a new `LoadTimeWeaverAwareProcessor` for the given `LoadTimeWeaver`.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Object` | `postProcessAfterInitialization(Object bean, String name)`
    `Object` | `postProcessBeforeInitialization(Object bean, String beanName)`
    `void` | `setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)`

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

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

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

    - #### LoadTimeWeaverAwareProcessor

          public LoadTimeWeaverAwareProcessor()

      Create a new `LoadTimeWeaverAwareProcessor` that will auto-retrieve the `LoadTimeWeaver` from the containing `BeanFactory`, expecting a bean named `"loadTimeWeaver"`.

    - #### LoadTimeWeaverAwareProcessor

          public LoadTimeWeaverAwareProcessor(@Nullable
                                              LoadTimeWeaver loadTimeWeaver)

      Create a new `LoadTimeWeaverAwareProcessor` for the given `LoadTimeWeaver`.

      If the given `loadTimeWeaver` is `null`, then a `LoadTimeWeaver` will be auto-retrieved from the containing `BeanFactory`, expecting a bean named `"loadTimeWeaver"`.

      参数:
        `loadTimeWeaver` - the specific `LoadTimeWeaver` that is to be used

    - #### LoadTimeWeaverAwareProcessor

          public LoadTimeWeaverAwareProcessor(org.springframework.beans.factory.BeanFactory beanFactory)

      Create a new `LoadTimeWeaverAwareProcessor`.

      The `LoadTimeWeaver` will be auto-retrieved from the given `BeanFactory`, expecting a bean named `"loadTimeWeaver"`.

      参数:
        `beanFactory` - the BeanFactory to retrieve the LoadTimeWeaver from

  - ### 方法详细资料

    - #### setBeanFactory

          public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)

      指定者:
        `setBeanFactory` 在接口中 `org.springframework.beans.factory.BeanFactoryAware`

    - #### postProcessBeforeInitialization

          public Object postProcessBeforeInitialization(Object bean,
                                                        String beanName)
                                                 throws org.springframework.beans.BeansException

      指定者:
        `postProcessBeforeInitialization` 在接口中 `org.springframework.beans.factory.config.BeanPostProcessor`
      抛出:
        `org.springframework.beans.BeansException`

    - #### postProcessAfterInitialization

          public Object postProcessAfterInitialization(Object bean,
                                                       String name)

      指定者:
        `postProcessAfterInitialization` 在接口中 `org.springframework.beans.factory.config.BeanPostProcessor`