From be782a219726cf3ad57bf810d03b3bb705f731d1 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 11 May 2022 17:16:40 +0200 Subject: [PATCH] Polish ref docs regarding the BeanFactory API See gh-28403 --- src/docs/asciidoc/core/core-beans.adoc | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/docs/asciidoc/core/core-beans.adoc b/src/docs/asciidoc/core/core-beans.adoc index e2b0d0df92e..9f2573d2386 100644 --- a/src/docs/asciidoc/core/core-beans.adoc +++ b/src/docs/asciidoc/core/core-beans.adoc @@ -33,12 +33,12 @@ is a sub-interface of `BeanFactory`. It adds: * Application-layer specific contexts such as the `WebApplicationContext` for use in web applications. -In short, the `BeanFactory` provides the configuration framework and basic -functionality, and the `ApplicationContext` adds more enterprise-specific functionality. -The `ApplicationContext` is a complete superset of the `BeanFactory` and is used -exclusively in this chapter in descriptions of Spring's IoC container. For more -information on using the `BeanFactory` instead of the `ApplicationContext,` see -<>. +In short, the `BeanFactory` provides the configuration framework and basic functionality, +and the `ApplicationContext` adds more enterprise-specific functionality. The +`ApplicationContext` is a complete superset of the `BeanFactory` and is used exclusively +in this chapter in descriptions of Spring's IoC container. For more information on using +the `BeanFactory` instead of the `ApplicationContext,` see the section covering the +<>. In Spring, the objects that form the backbone of your application and that are managed by the Spring IoC container are called beans. A bean is an object that is @@ -503,11 +503,11 @@ 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 the -BeanFactory `DefaultListableBeanFactory` implementation. `DefaultListableBeanFactory` -supports this registration through the `registerSingleton(..)` and -`registerBeanDefinition(..)` methods. However, typical applications work solely with beans -defined through regular bean definition metadata. +ApplicationContext's `BeanFactory` through the `getBeanFactory()` 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 +bean definition metadata. [NOTE] ==== @@ -11155,7 +11155,7 @@ by other application modules on the same machine. [[beans-beanfactory]] -== The `BeanFactory` +== The `BeanFactory` API The `BeanFactory` API provides the underlying basis for Spring's IoC functionality. Its specific contracts are mostly used in integration with other parts of Spring and