Class QuickTargetSourceCreator

Rod Johnson, Stephane Nicoll
See Also:
CommonsPool2TargetSource, ThreadLocalTargetSource, PrototypeTargetSource
    • Field Detail


        public static final java.lang.String PREFIX_COMMONS_POOL
        The CommonsPool2TargetSource prefix.
        See Also:
        Constant Field Values

        public static final java.lang.String PREFIX_THREAD_LOCAL
        The ThreadLocalTargetSource prefix.
        See Also:
        Constant Field Values

        public static final java.lang.String PREFIX_PROTOTYPE
        The PrototypeTargetSource prefix.
        See Also:
        Constant Field Values
    • Constructor Detail

      • QuickTargetSourceCreator

        public QuickTargetSourceCreator()
    • Method Detail

      • createBeanFactoryBasedTargetSource

        protected final AbstractBeanFactoryBasedTargetSource createBeanFactoryBasedTargetSource(java.lang.Class<?> beanClass,
                                                                                                          java.lang.String beanName)
        Description copied from class: AbstractBeanFactoryBasedTargetSourceCreator
        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' implementation of getTargetSource() will do that.
        Specified by:
        createBeanFactoryBasedTargetSource in class AbstractBeanFactoryBasedTargetSourceCreator
        beanClass - the class of the bean to create a TargetSource for
        beanName - the name of the bean
        the AbstractPrototypeBasedTargetSource, or null if we don't match this