类 SimpleBeanTargetSource
- java.lang.Object
- org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
- org.springframework.aop.target.SimpleBeanTargetSource
- 所有已实现的接口:
Serializable
,TargetClassAware
,TargetSource
,Aware
,BeanFactoryAware
public class SimpleBeanTargetSource extends AbstractBeanFactoryBasedTargetSource
SimpleTargetSource
implementation, freshly obtaining the specified target bean from its containing SpringBeanFactory
.Can obtain any kind of target bean: singleton, scoped, or prototype. Typically used for scoped beans.
- 从以下版本开始:
- 2.0.3
- 作者:
- Juergen Hoeller
- 另请参阅:
- 序列化表格
字段概要
从类继承的字段 org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
logger
构造器概要
构造器 构造器 说明 SimpleBeanTargetSource()
方法概要
从类继承的方法 org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
copyFrom, equals, getBeanFactory, getTargetBeanName, getTargetClass, hashCode, isStatic, releaseTarget, setBeanFactory, setTargetBeanName, setTargetClass, toString
构造器详细资料
SimpleBeanTargetSource
public SimpleBeanTargetSource()
方法详细资料
getTarget
public Object getTarget() throws Exception
从接口复制的说明:TargetSource
Return a target instance. Invoked immediately before the AOP framework calls the "target" of an AOP method invocation.- 返回:
- the target object which contains the joinpoint, or
null
if there is no actual target instance - 抛出:
Exception
- if the target object can't be resolved