Browse Source

Remove deprecated AbstractBeanDefinitionReader.getBeanFactory() method

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

Closes gh-27875
pull/27886/head
Sam Brannen 4 years ago
parent
commit
2ed7268ded
  1. 12
      spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanDefinitionReader.java

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

@ -103,18 +103,6 @@ public abstract class AbstractBeanDefinitionReader implements BeanDefinitionRead @@ -103,18 +103,6 @@ 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;
}
@Override
public final BeanDefinitionRegistry getRegistry() {
return this.registry;

Loading…
Cancel
Save