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 |
|---|---|
java.lang.Object |
getTarget()
Return a target instance.
|
copyFrom, equals, getBeanFactory, getTargetBeanName, getTargetClass, hashCode, isStatic, releaseTarget, setBeanFactory, setTargetBeanName, setTargetClass, toStringpublic java.lang.Object getTarget()
throws java.lang.Exception
TargetSourcenull if there is no actual target instancejava.lang.Exception - if the target object can't be resolved