类 QuickTargetSourceCreator
- java.lang.Object
- org.springframework.aop.framework.autoproxy.target.AbstractBeanFactoryBasedTargetSourceCreator
- org.springframework.aop.framework.autoproxy.target.QuickTargetSourceCreator
- 所有已实现的接口:
TargetSourceCreator
,Aware
,BeanFactoryAware
,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, ornull
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
字段详细资料
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
protected final 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, ornull
if they are not interested it in, in which case no special target source will be created. Subclasses should not callsetTargetBeanName
orsetBeanFactory
on the AbstractPrototypeBasedTargetSource: This class' implementation ofgetTargetSource()
will do that.- 指定者:
createBeanFactoryBasedTargetSource
在类中AbstractBeanFactoryBasedTargetSourceCreator
- 参数:
beanClass
- the class of the bean to create a TargetSource forbeanName
- the name of the bean- 返回:
- the AbstractPrototypeBasedTargetSource, or
null
if we don't match this