Skip to content

Commit f04e9a8

Browse files
committed
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
1 parent c1606c5 commit f04e9a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ protected AbstractBeanDefinitionReader(BeanDefinitionRegistry registry) {
107107
* Return the bean factory to register the bean definitions with.
108108
* <p>The factory is exposed through the BeanDefinitionRegistry interface,
109109
* encapsulating the methods that are relevant for bean definition handling.
110+
* @deprecated as of Spring Framework 5.3.15 in favor of {@link #getRegistry()},
111+
* to be removed in Spring Framework 6.0
110112
*/
113+
@Deprecated
111114
public final BeanDefinitionRegistry getBeanFactory() {
112115
return this.registry;
113116
}

0 commit comments

Comments
 (0)