org.springframework.aop.framework.autoproxy.target
Class QuickTargetSourceCreator
java.lang.Object
org.springframework.aop.framework.autoproxy.target.AbstractPrototypeBasedTargetSourceCreator
org.springframework.aop.framework.autoproxy.target.QuickTargetSourceCreator
- All Implemented Interfaces:
- TargetSourceCreator
- public class QuickTargetSourceCreator
- extends AbstractPrototypeBasedTargetSourceCreator
Convenient TargetSourceCreator using bean name prefixes to create one of three
well-known TargetSource types:
: CommonsPoolTargetSource
% ThreadLocalTargetSource
! PrototypeTargetSource
- Author:
- Rod Johnson
- See Also:
CommonsPoolTargetSource
,
ThreadLocalTargetSource
,
PrototypeTargetSource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREFIX_COMMONS_POOL
public static final String PREFIX_COMMONS_POOL
- See Also:
- Constant Field Values
PREFIX_THREAD_LOCAL
public static final String PREFIX_THREAD_LOCAL
- See Also:
- Constant Field Values
PREFIX_PROTOTYPE
public static final String PREFIX_PROTOTYPE
- See Also:
- Constant Field Values
QuickTargetSourceCreator
public QuickTargetSourceCreator()
createPrototypeTargetSource
protected final AbstractPrototypeBasedTargetSource createPrototypeTargetSource(Object bean,
String beanName,
BeanFactory factory)
- Description copied from class:
AbstractPrototypeBasedTargetSourceCreator
- 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.
Subclasses should not call
setTargetBeanName
or setBeanFactory
on the AbstractPrototypeBasedTargetSource: This class's implementation of
getTargetSource()
will do that.
- Specified by:
createPrototypeTargetSource
in class AbstractPrototypeBasedTargetSourceCreator
- Returns:
- the AbstractPrototypeBasedTargetSource, or null if we don't match this
Copyright (C) 2003-2004 The Spring Framework Project.