Browse Source

Merge pull request #34400 from canattofilipe

* pr/34400:
  Polish "Use correct method to retrieve DefaultListableBeanFactory"
  Use correct method to retrieve DefaultListableBeanFactory

Closes gh-34400
pull/34656/head
Stéphane Nicoll 10 months ago
parent
commit
bd1c7b379f
  1. 6
      framework-docs/modules/ROOT/pages/core/beans/definition.adoc

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

@ -57,9 +57,9 @@ The following table describes these properties:
In addition to bean definitions that contain information on how to create a specific In addition to bean definitions that contain information on how to create a specific
bean, the `ApplicationContext` implementations also permit the registration of existing 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 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,
the `DefaultListableBeanFactory` implementation. `DefaultListableBeanFactory` supports which returns the `DefaultListableBeanFactory` implementation. `DefaultListableBeanFactory`
this registration through the `registerSingleton(..)` and `registerBeanDefinition(..)` supports this registration through the `registerSingleton(..)` and `registerBeanDefinition(..)`
methods. However, typical applications work solely with beans defined through regular methods. However, typical applications work solely with beans defined through regular
bean definition metadata. bean definition metadata.

Loading…
Cancel
Save