Summary: yes, for one BeanFactory, no, to create BeanFactoryevery time.
If you use scope="singleton"which is the default setting, you will receive the same instance each time from the same BeanFactory.
Spring does not control the scope for multiple unrelated BeanFactory instances.
Why did you create several bean factories?
source
share