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
This commit is contained in:
parent
7311620915
commit
2ed7268ded
|
|
@ -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…
Reference in New Issue