Analysis of BeanFactoryLocator usage of BeanFactory Locator
BeanFactory locator BeanFactoryLocator use analysis, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
(1) BeanFactoryLocator interface
/ / locator for BeanFactory, used to find, use or release a BeanFactorypublic interface BeanFactoryLocator {/ / encapsulate a BeanFactoryReference,factoryKey according to the parameter factoryKey. BeanFactory is a member attribute of BeanFactoryReference BeanFactoryReference useBeanFactory (String factoryKey) throws BeansException;}
(2) BeanFactoryReference interface
Public interface BeanFactoryReference {/ / returns the beanFactory BeanFactory getFactory () held by the reference; / / releases the reference, usually because the client no longer needs void release ();}
(3) SingletonBeanFactoryLocator class
After reading the above, have you mastered the method of BeanFactoryLocator usage analysis of BeanFactory locator? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!