org.springframework.aop.framework.autoproxy

## 类 AbstractBeanFactoryAwareAdvisingPostProcessor

- java.lang.Object
- - org.springframework.aop.framework.ProxyConfig
  - - org.springframework.aop.framework.ProxyProcessorSupport
    - - org.springframework.aop.framework.AbstractAdvisingBeanPostProcessor
      - - org.springframework.aop.framework.autoproxy.AbstractBeanFactoryAwareAdvisingPostProcessor

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

      public abstract class AbstractBeanFactoryAwareAdvisingPostProcessor
      extends AbstractAdvisingBeanPostProcessor
      implements org.springframework.beans.factory.BeanFactoryAware

  Extension of `AbstractAutoProxyCreator` which implements `BeanFactoryAware`, adds exposure of the original target class for each proxied bean (`AutoProxyUtils.ORIGINAL_TARGET_CLASS_ATTRIBUTE`), and participates in an externally enforced target-class mode for any given bean (`AutoProxyUtils.PRESERVE_TARGET_CLASS_ATTRIBUTE`). This post-processor is therefore aligned with `AbstractAutoProxyCreator`.
  从以下版本开始:
    4.2.3
  作者:
    Juergen Hoeller
  另请参阅:
    `AutoProxyUtils.shouldProxyTargetClass(org.springframework.beans.factory.config.ConfigurableListableBeanFactory, java.lang.String)`, `AutoProxyUtils.determineTargetClass(org.springframework.beans.factory.config.ConfigurableListableBeanFactory, java.lang.String)`, 序列化表格

- - ### 字段概要

    - ### 从类继承的字段 org.springframework.aop.framework.AbstractAdvisingBeanPostProcessor

      `advisor, beforeExistingAdvisors`

    - ### 从接口继承的字段 org.springframework.core.Ordered

      `HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE`

  - ### 构造器概要

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

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected ProxyFactory` | `prepareProxyFactory(Object bean, String beanName)` Prepare a `ProxyFactory` for the given bean.
    `void` | `setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)`

    - ### 从类继承的方法 org.springframework.aop.framework.AbstractAdvisingBeanPostProcessor

      `customizeProxyFactory, isEligible, isEligible, postProcessAfterInitialization, postProcessBeforeInitialization, setBeforeExistingAdvisors`

    - ### 从类继承的方法 org.springframework.aop.framework.ProxyProcessorSupport

      `evaluateProxyInterfaces, getOrder, getProxyClassLoader, isConfigurationCallbackInterface, isInternalLanguageInterface, setBeanClassLoader, setOrder, setProxyClassLoader`

    - ### 从类继承的方法 org.springframework.aop.framework.ProxyConfig

      `copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass, toString`

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

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

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

    - #### AbstractBeanFactoryAwareAdvisingPostProcessor

          public AbstractBeanFactoryAwareAdvisingPostProcessor()

  - ### 方法详细资料

    - #### setBeanFactory

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

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

    - #### prepareProxyFactory

          protected ProxyFactory prepareProxyFactory(Object bean,
                                                     String beanName)

      从类复制的说明: `AbstractAdvisingBeanPostProcessor`
      Prepare a `ProxyFactory` for the given bean.

      Subclasses may customize the handling of the target instance and in particular the exposure of the target class. The default introspection of interfaces for non-target-class proxies and the configured advisor will be applied afterwards; `AbstractAdvisingBeanPostProcessor.customizeProxyFactory(org.springframework.aop.framework.ProxyFactory)` allows for late customizations of those parts right before proxy creation.

      覆盖:
        `prepareProxyFactory` 在类中 `AbstractAdvisingBeanPostProcessor`
      参数:
        `bean` - the bean instance to create a proxy for
        `beanName` - the corresponding bean name
      返回:
        the ProxyFactory, initialized with this processor's `ProxyConfig` settings and the specified bean
      另请参阅:
        `AbstractAdvisingBeanPostProcessor.customizeProxyFactory(org.springframework.aop.framework.ProxyFactory)`