Deprecate inappropriate getBeanFactory() method in AbstractBeanDefinitionReader #27875
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
in
spring5.3.10 version
A public method is provided in the
AbstractBeanDefinitionReader
class,This method does not have any notes, and the type returned is a
BeanDefinitionRegistry
, but the method name isgetBeanFactory
. However,BeanDefinitionRegistry
doesn't extendsBeanFactory
, so naming it is easy to mislead everyone,getRegistry()
method has been provided,So I think the
getBeanFactory
method should be removed.The text was updated successfully, but these errors were encountered: