org.springframework.aop.target
Class PrototypeTargetSource

java.lang.Object
  extended byorg.springframework.aop.target.AbstractPrototypeTargetSource
      extended byorg.springframework.aop.target.PrototypeTargetSource
All Implemented Interfaces:
BeanFactoryAware, InitializingBean, TargetSource

public final class PrototypeTargetSource
extends AbstractPrototypeTargetSource

TargetSource that creates a new instance of the target bean for each request. Can only be used in a bean factory.

Version:
$Id: PrototypeTargetSource.java,v 1.5 2004/03/18 02:46:13 trisberg Exp $
Author:
Rod Johnson

Field Summary
 
Fields inherited from class org.springframework.aop.target.AbstractPrototypeTargetSource
logger
 
Constructor Summary
PrototypeTargetSource()
           
 
Method Summary
 java.lang.Object getTarget()
           
 void releaseTarget(java.lang.Object target)
           
 
Methods inherited from class org.springframework.aop.target.AbstractPrototypeTargetSource
afterPropertiesSet, getTargetBeanName, getTargetClass, isStatic, newPrototypeInstance, setBeanFactory, setTargetBeanName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrototypeTargetSource

public PrototypeTargetSource()
Method Detail

getTarget

public java.lang.Object getTarget()

releaseTarget

public void releaseTarget(java.lang.Object target)


Copyright (C) 2003-2004 The Spring Framework Project.