public class

PrototypeTargetSource

extends AbstractPrototypeBasedTargetSource
java.lang.Object
   ↳ org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
     ↳ org.springframework.aop.target.AbstractPrototypeBasedTargetSource
       ↳ org.springframework.aop.target.PrototypeTargetSource

Class Overview

TargetSource 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.

Summary

[Expand]
Inherited Fields
From class org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
Public Constructors
PrototypeTargetSource()
Public Methods
Object getTarget()
Obtain a new prototype instance for every call.
void releaseTarget(Object target)
Destroy the given independent instance.
String toString()
[Expand]
Inherited Methods
From class org.springframework.aop.target.AbstractPrototypeBasedTargetSource
From class org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
From class java.lang.Object
From interface org.springframework.aop.TargetClassAware
From interface org.springframework.aop.TargetSource
From interface org.springframework.beans.factory.BeanFactoryAware

Public Constructors

public PrototypeTargetSource ()

Public Methods

public Object getTarget ()

Obtain a new prototype instance for every call.

public void releaseTarget (Object target)

Destroy the given independent instance.

Parameters
target object obtained from a call to getTarget()

public String toString ()