org.springframework.aop.framework.autoproxy.target

## 类 QuickTargetSourceCreator

- java.lang.Object
- - org.springframework.aop.framework.autoproxy.target.AbstractBeanFactoryBasedTargetSourceCreator
  - - org.springframework.aop.framework.autoproxy.target.QuickTargetSourceCreator

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

      public class QuickTargetSourceCreator
      extends AbstractBeanFactoryBasedTargetSourceCreator

  Convenient TargetSourceCreator using bean name prefixes to create one of three well-known TargetSource types:
- : CommonsPool2TargetSource
- % ThreadLocalTargetSource
- ! PrototypeTargetSource

作者:
  Rod Johnson, Stephane Nicoll
另请参阅:
  `CommonsPool2TargetSource`, `ThreadLocalTargetSource`, `PrototypeTargetSource`

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static String` | `PREFIX_COMMONS_POOL`
    `static String` | `PREFIX_PROTOTYPE`
    `static String` | `PREFIX_THREAD_LOCAL`

    - ### 从类继承的字段 org.springframework.aop.framework.autoproxy.target.AbstractBeanFactoryBasedTargetSourceCreator

      `logger`

  - ### 构造器概要

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

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected AbstractBeanFactoryBasedTargetSource` | `createBeanFactoryBasedTargetSource(Class<?> beanClass, String beanName)` Subclasses must implement this method to return a new AbstractPrototypeBasedTargetSource if they wish to create a custom TargetSource for this bean, or `null` if they are not interested it in, in which case no special target source will be created.

    - ### 从类继承的方法 org.springframework.aop.framework.autoproxy.target.AbstractBeanFactoryBasedTargetSourceCreator

      `buildInternalBeanFactory, destroy, getBeanFactory, getInternalBeanFactoryForBean, getTargetSource, isPrototypeBased, setBeanFactory`

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

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

- - ### 字段详细资料

    - #### PREFIX_COMMONS_POOL

          public static final String PREFIX_COMMONS_POOL

      另请参阅:
        常量字段值

    - #### PREFIX_THREAD_LOCAL

          public static final String PREFIX_THREAD_LOCAL

      另请参阅:
        常量字段值

    - #### PREFIX_PROTOTYPE

          public static final String PREFIX_PROTOTYPE

      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### QuickTargetSourceCreator

          public QuickTargetSourceCreator()

  - ### 方法详细资料

    - #### createBeanFactoryBasedTargetSource

          @Nullable
          protected final AbstractBeanFactoryBasedTargetSource createBeanFactoryBasedTargetSource(Class<?> beanClass,
                                                                                                             String beanName)

      从类复制的说明: `AbstractBeanFactoryBasedTargetSourceCreator`
      Subclasses must implement this method to return a new AbstractPrototypeBasedTargetSource if they wish to create a custom TargetSource for this bean, or `null` if they are not interested it in, in which case no special target source will be created. Subclasses should not call `setTargetBeanName` or `setBeanFactory` on the AbstractPrototypeBasedTargetSource: This class' implementation of `getTargetSource()` will do that.
      指定者:
        `createBeanFactoryBasedTargetSource` 在类中 `AbstractBeanFactoryBasedTargetSourceCreator`
      参数:
        `beanClass` - the class of the bean to create a TargetSource for
        `beanName` - the name of the bean
      返回:
        the AbstractPrototypeBasedTargetSource, or `null` if we don't match this