Top Description Fields Constructors Methods
org.springframework.aop.target

public Class SimpleBeanTargetSource

extends AbstractBeanFactoryBasedTargetSource
Class Inheritance
Annotations
@SuppressWarnings:serial

Simple org.springframework.aop.TargetSource implementation, freshly obtaining the specified target bean from its containing Spring org.springframework.beans.factory.BeanFactory.

Can obtain any kind of target bean: singleton, scoped, or prototype. Typically used for scoped beans.

Author
Juergen Hoeller
Since
2.0.3

Field Summary

Inherited from org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource:
logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
getTarget()

Implements org.springframework.aop.TargetSource.getTarget.

Return a target instance.

Inherited from org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource:
copyFromequalsgetBeanFactorygetTargetBeanNamegetTargetClasshashCodesetBeanFactorysetTargetBeanNamesetTargetClasstoString

Constructor Detail

SimpleBeanTargetSourceback to summary
public SimpleBeanTargetSource()

Method Detail

getTargetback to summary
public Object getTarget() throws Exception

Implements org.springframework.aop.TargetSource.getTarget.

Doc from org.springframework.aop.TargetSource.getTarget.

Return a target instance. Invoked immediately before the AOP framework calls the "target" of an AOP method invocation.

Returns:Object

the target object which contains the joinpoint, or null if there is no actual target instance

Annotations
@Override
Exceptions
Exception:
if the target object can't be resolved