org.springframework.aop.target
Class PrototypeTargetSource
java.lang.Object
org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource
org.springframework.aop.target.AbstractPrototypeBasedTargetSource
org.springframework.aop.target.PrototypeTargetSource
- All Implemented Interfaces:
- Serializable, TargetSource, BeanFactoryAware
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrototypeTargetSource
public PrototypeTargetSource()
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) 2002-2005 The Spring Framework Project.