org.springframework.aop.target

## 类 SimpleBeanTargetSource

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

- 所有已实现的接口:
    Serializable, TargetClassAware, TargetSource, org.springframework.beans.factory.Aware, org.springframework.beans.factory.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.

  从以下版本开始:
    2.0.3
  作者:
    Juergen Hoeller
  另请参阅:
    序列化表格

- - ### 字段概要

    - ### 从类继承的字段 org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource

      `logger`

  - ### 构造器概要

    构造器
    构造器和说明
    `SimpleBeanTargetSource()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Object` | `getTarget()` Return a target instance.

    - ### 从类继承的方法 org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource

      `copyFrom, equals, getBeanFactory, getTargetBeanName, getTargetClass, hashCode, isStatic, releaseTarget, setBeanFactory, setTargetBeanName, setTargetClass, toString`

    - ### 从类继承的方法 java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### 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