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

All Implemented Interfaces:
    TargetSource, BeanFactoryAware, Serializable

Direct Known Subclasses:
    CommonsPoolTargetSource, PrototypeTargetSource, AbstractPoolingTargetSource, ThreadLocalTargetSource

Base class for dynamic TargetSources that can create new prototype bean instances to support a pooling or new-instance-per-invocation strategy.

Such TargetSources must run in a BeanFactory, as it needs to call the getBean method to create a new prototype instance. Therefore, this base class extends AbstractBeanFactoryBasedTargetSource .

Fields inherited from org.springframework.aop.target.AbstractBeanFactoryBasedTargetSource:
logger
Method from org.springframework.aop.target.AbstractPrototypeBasedTargetSource Summary:
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.AbstractPrototypeBasedTargetSource Detail:
 protected  void destroyPrototypeInstance(Object target) 
    Subclasses should call this method to destroy an obsolete prototype instance.
 protected Object newPrototypeInstance() throws BeansException 
    Subclasses should call this method to create a new prototype instance.
 public  void setBeanFactory(BeanFactory beanFactory) throws BeansException