Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.aop.target
Class SimpleBeanTargetSource

    java.lang.Object
      org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
          org.springframework.aop.target.SimpleBeanTargetSource

All Implemented Interfaces:
  java.io.Serializable, TargetClassAware, TargetSource, Aware, BeanFactoryAware

    public class SimpleBeanTargetSource

extends AbstractBeanFactoryBasedTargetSource

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:
  Serialized Form

Field Summary

Fields inherited from class org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
`logger`

Constructor Summary
`SimpleBeanTargetSource()`

Method Summary
`java.lang.Object` | `getTarget()` Return a target instance.

Methods inherited from class org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
`copyFrom, equals, getBeanFactory, getTargetBeanName, getTargetClass, hashCode, isStatic, releaseTarget, setBeanFactory, setTargetBeanName, setTargetClass, toString`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### SimpleBeanTargetSource

    public SimpleBeanTargetSource()

Method Detail

### getTarget

    public java.lang.Object getTarget()
                               throws java.lang.Exception

  Description copied from interface: `TargetSource`
  Return 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
  Throws:
    `java.lang.Exception` - if the target object can't be resolved

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD