org.springframework.aop.framework.autoproxy.target
Class QuickTargetSourceCreator

java.lang.Object
  extended byorg.springframework.aop.framework.autoproxy.target.AbstractPrototypeTargetSourceCreator
      extended byorg.springframework.aop.framework.autoproxy.target.QuickTargetSourceCreator
All Implemented Interfaces:
TargetSourceCreator

public class QuickTargetSourceCreator
extends AbstractPrototypeTargetSourceCreator

Convenient TargetSourceCreator using bean name prefixes to create one of three well-known TargetSource types:

  • : CommonsPoolTargetSource
  • % ThreadLocalTargetSource
  • ! PrototypeTargetSource

    Version:
    $Id: QuickTargetSourceCreator.java,v 1.3 2004/03/18 02:46:16 trisberg Exp $
    Author:
    Rod Johnson

    Field Summary
     
    Fields inherited from class org.springframework.aop.framework.autoproxy.target.AbstractPrototypeTargetSourceCreator
    logger
     
    Constructor Summary
    QuickTargetSourceCreator()
               
     
    Method Summary
    protected  AbstractPrototypeTargetSource createPrototypeTargetSource(java.lang.Object bean, java.lang.String beanName, BeanFactory factory)
              Subclasses must implement this method to return a new AbstractPrototypeTargetSource 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.AbstractPrototypeTargetSourceCreator
    getTargetSource
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    QuickTargetSourceCreator

    public QuickTargetSourceCreator()
    Method Detail

    createPrototypeTargetSource

    protected final AbstractPrototypeTargetSource createPrototypeTargetSource(java.lang.Object bean,
                                                                              java.lang.String beanName,
                                                                              BeanFactory factory)
    Description copied from class: AbstractPrototypeTargetSourceCreator
    Subclasses must implement this method to return a new AbstractPrototypeTargetSource 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 AbstractPrototypeTargetSource: this class's implementation of getTargetSource() will do that.

    Specified by:
    createPrototypeTargetSource in class AbstractPrototypeTargetSourceCreator
    Returns:
    null if we don't match this


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