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, toString
public Object getTarget() throws Exception
TargetSource
Exception
- if the target object can't be resolved