Class SimpleBeanTargetSource
java.lang.Object
org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
org.springframework.aop.target.SimpleBeanTargetSource
- All Implemented Interfaces:
- Serializable, TargetClassAware, TargetSource, Aware, BeanFactoryAware
Simple 
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.
- Since:
- 2.0.3
- Author:
- Juergen Hoeller
- See Also:
- 
Field SummaryFields inherited from class AbstractBeanFactoryBasedTargetSourcelogger, targetBeanName
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class AbstractBeanFactoryBasedTargetSourcecopyFrom, equals, getBeanFactory, getTargetBeanName, getTargetClass, hashCode, setBeanFactory, setTargetBeanName, setTargetClass, toStringMethods inherited from interface TargetSourceisStatic, releaseTarget
- 
Constructor Details- 
SimpleBeanTargetSourcepublic SimpleBeanTargetSource()
 
- 
- 
Method Details- 
getTargetDescription copied from interface:TargetSourceReturn a target instance. Invoked immediately before the AOP framework calls the "target" of an AOP method invocation.- Returns:
- the target object which contains the joinpoint,
or nullif there is no actual target instance
- Throws:
- Exception- if the target object can't be resolved
 
 
-