Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » aop » target » [javadoc | source]
org.springframework.aop.target
public class: PrototypeTargetSource [javadoc | source]
java.lang.Object
   org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
      org.springframework.aop.target.AbstractPrototypeBasedTargetSource
         org.springframework.aop.target.PrototypeTargetSource

All Implemented Interfaces:
    TargetSource, BeanFactoryAware, Serializable

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 org.springframework.beans.factory.BeanFactory .
Fields inherited from org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource:
logger
Method from org.springframework.aop.target.PrototypeTargetSource Summary:
getTarget,   releaseTarget,   toString
Methods from org.springframework.aop.target.AbstractPrototypeBasedTargetSource:
destroyPrototypeInstance,   newPrototypeInstance,   setBeanFactory
Methods from org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource:
copyFrom,   equals,   getBeanFactory,   getTargetBeanName,   getTargetClass,   hashCode,   isStatic,   releaseTarget,   setBeanFactory,   setTargetBeanName,   setTargetClass,   toString,   writeReplace
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.aop.target.PrototypeTargetSource Detail:
 public Object getTarget() throws BeansException 
    Obtain a new prototype instance for every call.
 public  void releaseTarget(Object target) 
    Destroy the given independent instance.
 public String toString()