Skip to content

Commit

Permalink
HSEARCH-4682 Fix phrasing in bean lifecycle documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Aug 25, 2022
1 parent 7e4c487 commit 5bb8cc2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5bb8cc2

Please sign in to comment.