org.springframework.aop.target

## 类 PrototypeTargetSource

- java.lang.Object
- - org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
  - - org.springframework.aop.target.AbstractPrototypeBasedTargetSource
    - - org.springframework.aop.target.PrototypeTargetSource

- 所有已实现的接口:
    Serializable, TargetClassAware, TargetSource, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware

      public class PrototypeTargetSource
      extends AbstractPrototypeBasedTargetSource

  `TargetSource` implementation that creates a new instance of the target bean for each request, destroying each instance on release (after each request).

  Obtains bean instances from its containing `BeanFactory`.

  作者:
    Rod Johnson, Juergen Hoeller
  另请参阅:
    `AbstractPrototypeBasedTargetSource.setBeanFactory(org.springframework.beans.factory.BeanFactory)`, `AbstractBeanFactoryBasedTargetSource.setTargetBeanName(java.lang.String)`, 序列化表格

- - ### 字段概要

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

      `logger`

  - ### 构造器概要

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

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Object` | `getTarget()` Obtain a new prototype instance for every call.
    `void` | `releaseTarget(Object target)` Destroy the given independent instance.
    `String` | `toString()`

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

      `destroyPrototypeInstance, newPrototypeInstance, setBeanFactory, writeReplace`

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

      `copyFrom, equals, getBeanFactory, getTargetBeanName, getTargetClass, hashCode, isStatic, setTargetBeanName, setTargetClass`

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

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

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

    - #### PrototypeTargetSource

          public PrototypeTargetSource()

  - ### 方法详细资料

    - #### getTarget

          public Object getTarget()
                           throws org.springframework.beans.BeansException

      Obtain a new prototype instance for every call.
      返回:
        the target object which contains the joinpoint, or `null` if there is no actual target instance
      抛出:
        `org.springframework.beans.BeansException`
      另请参阅:
        `AbstractPrototypeBasedTargetSource.newPrototypeInstance()`

    - #### releaseTarget

          public void releaseTarget(Object target)

      Destroy the given independent instance.
      指定者:
        `releaseTarget` 在接口中 `TargetSource`
      覆盖:
        `releaseTarget` 在类中 `AbstractBeanFactoryBasedTargetSource`
      参数:
        `target` - object obtained from a call to `TargetSource.getTarget()`
      另请参阅:
        `AbstractPrototypeBasedTargetSource.destroyPrototypeInstance(java.lang.Object)`

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `AbstractBeanFactoryBasedTargetSource`