org.springframework.aop.framework.autoproxy.metadata
Class AttributesPrototypeTargetSourceCreator

java.lang.Object
  extended byorg.springframework.aop.framework.autoproxy.target.AbstractPrototypeBasedTargetSourceCreator
      extended byorg.springframework.aop.framework.autoproxy.metadata.AttributesPrototypeTargetSourceCreator
All Implemented Interfaces:
TargetSourceCreator

public class AttributesPrototypeTargetSourceCreator
extends AbstractPrototypeBasedTargetSourceCreator

PrototypeTargetSourceCreator driven by metadata. Creates a prototype only if there's a PrototypeAttribute associated with the class.

Author:
Rod Johnson
See Also:
PrototypeTargetSource

Field Summary
 
Fields inherited from class org.springframework.aop.framework.autoproxy.target.AbstractPrototypeBasedTargetSourceCreator
logger
 
Constructor Summary
AttributesPrototypeTargetSourceCreator(Attributes attributes)
           
 
Method Summary
protected  AbstractPrototypeBasedTargetSource createPrototypeTargetSource(java.lang.Object bean, java.lang.String beanName, BeanFactory bf)
          Subclasses must implement this method to return a new AbstractPrototypeBasedTargetSource if they wish to create a custom TargetSource for this bean, or null if they are not interested it in, in which case no special target source will be created.
 
Methods inherited from class org.springframework.aop.framework.autoproxy.target.AbstractPrototypeBasedTargetSourceCreator
getTargetSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributesPrototypeTargetSourceCreator

public AttributesPrototypeTargetSourceCreator(Attributes attributes)
Method Detail

createPrototypeTargetSource

protected AbstractPrototypeBasedTargetSource createPrototypeTargetSource(java.lang.Object bean,
                                                                         java.lang.String beanName,
                                                                         BeanFactory bf)
Description copied from class: AbstractPrototypeBasedTargetSourceCreator
Subclasses must implement this method to return a new AbstractPrototypeBasedTargetSource if they wish to create a custom TargetSource for this bean, or null if they are not interested it in, in which case no special target source will be created. Subclasses should not call setTargetBeanName() or setBeanFactory() on the AbstractPrototypeBasedTargetSource: This class's implementation of getTargetSource() will do that.

Specified by:
createPrototypeTargetSource in class AbstractPrototypeBasedTargetSourceCreator
Returns:
the AbstractPrototypeBasedTargetSource, or null if we don't match this


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