类 QuickTargetSourceCreator

java.lang.Object
infra.aop.framework.autoproxy.target.AbstractBeanFactoryTargetSourceCreator
infra.aop.framework.autoproxy.target.QuickTargetSourceCreator
所有已实现的接口:
TargetSourceCreator, infra.beans.factory.Aware, infra.beans.factory.BeanFactoryAware, infra.beans.factory.DisposableBean

public class QuickTargetSourceCreator extends AbstractBeanFactoryTargetSourceCreator
Convenient TargetSourceCreator using bean name prefixes to create one of three well-known TargetSource types:
  • : CommonsPool2TargetSource
  • % ThreadLocalTargetSource
  • ! PrototypeTargetSource
从以下版本开始:
4.0 2021/12/13 22:32
作者:
Rod Johnson, Stephane Nicoll, Harry Yang
另请参阅:
  • 字段详细资料

    • PREFIX_COMMONS_POOL

      public static final String PREFIX_COMMONS_POOL
      The CommonsPool2TargetSource prefix.
      另请参阅:
    • PREFIX_THREAD_LOCAL

      public static final String PREFIX_THREAD_LOCAL
      The ThreadLocalTargetSource prefix.
      另请参阅:
    • PREFIX_PROTOTYPE

      public static final String PREFIX_PROTOTYPE
      The PrototypeTargetSource prefix.
      另请参阅:
  • 构造器详细资料

    • QuickTargetSourceCreator

      public QuickTargetSourceCreator()
  • 方法详细资料

    • createBeanFactoryTargetSource

      @Nullable protected final AbstractBeanFactoryTargetSource createBeanFactoryTargetSource(Class<?> beanClass, String beanName)
      Subclasses must implement this method to return a new AbstractPrototypeTargetSource 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 AbstractPrototypeTargetSource: This class' implementation of getTargetSource() will do that.
      指定者:
      createBeanFactoryTargetSource 在类中 AbstractBeanFactoryTargetSourceCreator
      参数:
      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