类 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
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
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected final AbstractBeanFactoryTargetSourcecreateBeanFactoryTargetSource(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, ornullif they are not interested it in, in which case no special target source will be created.从类继承的方法 infra.aop.framework.autoproxy.target.AbstractBeanFactoryTargetSourceCreator
buildInternalBeanFactory, destroy, getBeanFactory, getInternalBeanFactoryForBean, getTargetSource, isPrototypeBased, setBeanFactory
-
字段详细资料
-
构造器详细资料
-
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, ornullif they are not interested it in, in which case no special target source will be created. Subclasses should not callsetTargetBeanNameorsetBeanFactoryon the AbstractPrototypeTargetSource: This class' implementation ofgetTargetSource()will do that.- 指定者:
createBeanFactoryTargetSource在类中AbstractBeanFactoryTargetSourceCreator- 参数:
beanClass- the class of the bean to create a TargetSource forbeanName- the name of the bean- 返回:
- the AbstractPrototypeBasedTargetSource, or
nullif we don't match this
-