|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.framework.autoproxy.target.AbstractBeanFactoryBasedTargetSourceCreator org.springframework.aop.framework.autoproxy.target.QuickTargetSourceCreator
public class QuickTargetSourceCreator
Convenient TargetSourceCreator using bean name prefixes to create one of three well-known TargetSource types:
CommonsPoolTargetSource
,
ThreadLocalTargetSource
,
PrototypeTargetSource
Field Summary | |
---|---|
static java.lang.String |
PREFIX_COMMONS_POOL
|
static java.lang.String |
PREFIX_PROTOTYPE
|
static java.lang.String |
PREFIX_THREAD_LOCAL
|
Fields inherited from class org.springframework.aop.framework.autoproxy.target.AbstractBeanFactoryBasedTargetSourceCreator |
---|
logger |
Constructor Summary | |
---|---|
QuickTargetSourceCreator()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.springframework.aop.framework.autoproxy.target.AbstractBeanFactoryBasedTargetSourceCreator |
---|
buildInternalBeanFactory, destroy, getBeanFactory, getInternalBeanFactoryForBean, getTargetSource, isPrototypeBased, setBeanFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public 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
Constructor Detail |
---|
public QuickTargetSourceCreator()
Method Detail |
---|
protected final AbstractBeanFactoryBasedTargetSource createBeanFactoryBasedTargetSource(java.lang.Class beanClass, java.lang.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 bean
null
if we don't match this
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |