From 5bb8cc28dd3ae2e6f284371b280f7be0c16a8f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Thu, 25 Aug 2022 09:31:58 +0200 Subject: [PATCH] HSEARCH-4682 Fix phrasing in bean lifecycle documentation --- .../src/main/asciidoc/reference/configuration.asciidoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/src/main/asciidoc/reference/configuration.asciidoc b/documentation/src/main/asciidoc/reference/configuration.asciidoc index e47f6f5f87b..91805b7b027 100644 --- a/documentation/src/main/asciidoc/reference/configuration.asciidoc +++ b/documentation/src/main/asciidoc/reference/configuration.asciidoc @@ -373,10 +373,10 @@ so they will be released on shutdown. Be careful to define the scope of your beans as appropriate. Immutable beans or beans used only once such as `ElasticsearchAnalysisConfigurer` -may safely most scopes, -but some beans are expected to be mutable and instantiated multiple times, -such as for example `PropertyBinder`. +may be safely assigned any scope. +However, some beans are expected to be mutable and instantiated multiple times, +such as for example `PropertyBinder`. For these beans, it is recommended to use the "dependent" scope (CDI terminology) or the "prototype" scope (Spring terminology). When in doubt, this is also generally the safest choice