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