mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
4262aed9c8
Prior to this change, (Context)SingletonBeanFactoryLocator used BeanFactoryUtils#beanOfType(ListableBeanFactory, Class) to locate the bean of type BeanFactory. The more modern approach is to use BeanFactory#getBean(Class), which removes a dependency on ListableBeanFactory interface while at the same time opening the implementation up to respecting autowiring exclusions, primary metadata, etc. Issue: SPR-8489