Use correct method to retrieve DefaultListableBeanFactory
See gh-34400 Signed-off-by: canattofilipe <canattofilipe@gmail.com>
This commit is contained in:
committed by
Stéphane Nicoll
parent
d04883f839
commit
328dd71f6e
@@ -57,7 +57,7 @@ The following table describes these properties:
|
||||
In addition to bean definitions that contain information on how to create a specific
|
||||
bean, the `ApplicationContext` implementations also permit the registration of existing
|
||||
objects that are created outside the container (by users). This is done by accessing the
|
||||
ApplicationContext's `BeanFactory` through the `getBeanFactory()` method, which returns
|
||||
ApplicationContext's `BeanFactory` through the `getAutowireCapableBeanFactory()` method, which returns
|
||||
the `DefaultListableBeanFactory` implementation. `DefaultListableBeanFactory` supports
|
||||
this registration through the `registerSingleton(..)` and `registerBeanDefinition(..)`
|
||||
methods. However, typical applications work solely with beans defined through regular
|
||||
|
||||
Reference in New Issue
Block a user