Skip to content

Commit bd1c7b3

Browse files
committed
Merge pull request #34400 from canattofilipe
* pr/34400: Polish "Use correct method to retrieve DefaultListableBeanFactory" Use correct method to retrieve DefaultListableBeanFactory Closes gh-34400
2 parents d04883f + 6af1924 commit bd1c7b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

framework-docs/modules/ROOT/pages/core/beans/definition.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ The following table describes these properties:
5757
In addition to bean definitions that contain information on how to create a specific
5858
bean, the `ApplicationContext` implementations also permit the registration of existing
5959
objects that are created outside the container (by users). This is done by accessing the
60-
ApplicationContext's `BeanFactory` through the `getBeanFactory()` method, which returns
61-
the `DefaultListableBeanFactory` implementation. `DefaultListableBeanFactory` supports
62-
this registration through the `registerSingleton(..)` and `registerBeanDefinition(..)`
60+
ApplicationContext's `BeanFactory` through the `getAutowireCapableBeanFactory()` method,
61+
which returns the `DefaultListableBeanFactory` implementation. `DefaultListableBeanFactory`
62+
supports this registration through the `registerSingleton(..)` and `registerBeanDefinition(..)`
6363
methods. However, typical applications work solely with beans defined through regular
6464
bean definition metadata.
6565

0 commit comments

Comments
 (0)