public class SimpleBeanTargetSource extends AbstractBeanFactoryBasedTargetSource
TargetSource implementation,
freshly obtaining the specified target bean from its containing
Spring BeanFactory.
Can obtain any kind of target bean: singleton, scoped, or prototype. Typically used for scoped beans.
logger| Constructor and Description |
|---|
SimpleBeanTargetSource() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getTarget()
Return a target instance.
|
copyFrom, equals, getBeanFactory, getTargetBeanName, getTargetClass, hashCode, isStatic, releaseTarget, setBeanFactory, setTargetBeanName, setTargetClass, toStringpublic Object getTarget() throws Exception
TargetSourceException - if the target object can't be resolved