public class QuickTargetSourceCreator extends AbstractBeanFactoryBasedTargetSourceCreator
CommonsPool2TargetSource,
ThreadLocalTargetSource,
PrototypeTargetSource| 限定符和类型 | 字段和说明 |
|---|---|
static String |
PREFIX_COMMONS_POOL |
static String |
PREFIX_PROTOTYPE |
static String |
PREFIX_THREAD_LOCAL |
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. |
buildInternalBeanFactory, destroy, getBeanFactory, getInternalBeanFactoryForBean, getTargetSource, isPrototypeBased, setBeanFactory@Nullable protected final AbstractBeanFactoryBasedTargetSource createBeanFactoryBasedTargetSource(Class<?> beanClass, String beanName)
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 在类中 AbstractBeanFactoryBasedTargetSourceCreatorbeanClass - the class of the bean to create a TargetSource forbeanName - the name of the beannull if we don't match this