Browse Source

Deprecate getBeanFactory() method in AbstractBeanDefinitionReader

The getBeanFactory() method has been obsolete for more than 13 years
since it was superseded by the getRegistry() method in the
BeanDefinitionReader interface.

Closes gh-27875
pull/27896/head
Sam Brannen 4 years ago
parent
commit
f04e9a8366
  1. 3
      spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanDefinitionReader.java

3
spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanDefinitionReader.java

@ -107,7 +107,10 @@ public abstract class AbstractBeanDefinitionReader implements BeanDefinitionRead @@ -107,7 +107,10 @@ public abstract class AbstractBeanDefinitionReader implements BeanDefinitionRead
* Return the bean factory to register the bean definitions with.
* <p>The factory is exposed through the BeanDefinitionRegistry interface,
* encapsulating the methods that are relevant for bean definition handling.
* @deprecated as of Spring Framework 5.3.15 in favor of {@link #getRegistry()},
* to be removed in Spring Framework 6.0
*/
@Deprecated
public final BeanDefinitionRegistry getBeanFactory() {
return this.registry;
}

Loading…
Cancel
Save