Uses an internal BeanFactory to manage the target instances,
copying the original bean definition to this internal factory.
This is necessary because the original BeanFactory will just
contain the proxy instance created through auto-proxying.
createBeanFactoryBasedTargetSource(Class beanClass, String beanName) 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.
public void
destroy() Destroys the internal BeanFactory on shutdown of the TargetSourceCreator.
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.
Parameters: beanClass - the class of the bean to create a TargetSource for Parameters: beanName - the name of the bean the AbstractPrototypeBasedTargetSource, or null if we don't match this