org.springframework.aop.target
Class PrototypeTargetSource

java.lang.Object
  extended byorg.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
      extended byorg.springframework.aop.target.AbstractPrototypeBasedTargetSource
          extended byorg.springframework.aop.target.PrototypeTargetSource
All Implemented Interfaces:
BeanFactoryAware, Serializable, TargetSource

public final class PrototypeTargetSource
extends AbstractPrototypeBasedTargetSource

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

Author:
Rod Johnson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
logger
 
Constructor Summary
PrototypeTargetSource()
           
 
Method Summary
 Object getTarget()
          Return a target instance.
 
Methods inherited from class org.springframework.aop.target.AbstractPrototypeBasedTargetSource
newPrototypeInstance, setBeanFactory
 
Methods inherited from class org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
getBeanFactory, getTargetBeanName, getTargetClass, isStatic, releaseTarget, setTargetBeanName, writeReplace
 
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 Object getTarget()
                 throws BeansException
Description copied from interface: TargetSource
Return a target instance. Invoked immediately before the AOP framework calls the "target" of an AOP method invocation.

Returns:
the target object, whicch contains the joinpoint
Throws:
BeansException


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