public class QuickTargetSourceCreator extends AbstractBeanFactoryBasedTargetSourceCreator
CommonsPoolTargetSource,
ThreadLocalTargetSource,
PrototypeTargetSource| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PREFIX_COMMONS_POOL |
static java.lang.String |
PREFIX_PROTOTYPE |
static java.lang.String |
PREFIX_THREAD_LOCAL |
logger| Constructor and Description |
|---|
QuickTargetSourceCreator() |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractBeanFactoryBasedTargetSource |
createBeanFactoryBasedTargetSource(java.lang.Class beanClass,
java.lang.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, setBeanFactorypublic static final java.lang.String PREFIX_COMMONS_POOL
public static final java.lang.String PREFIX_THREAD_LOCAL
public static final java.lang.String PREFIX_PROTOTYPE
protected final AbstractBeanFactoryBasedTargetSource createBeanFactoryBasedTargetSource(java.lang.Class beanClass, java.lang.String beanName)
AbstractBeanFactoryBasedTargetSourceCreatornull 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 in class AbstractBeanFactoryBasedTargetSourceCreatorbeanClass - the class of the bean to create a TargetSource forbeanName - the name of the beannull if we don't match this