Rename BeanOverrideStrategy
enum constants
#33701
Labels
Milestone
BeanOverrideStrategy
enum constants
#33701
The enum constants in
BeanOverrideStrategy
reflect our initial understanding of how the Bean Override feature would work; however, we no longer create or replaceBeanDefinitions
in general.We only create a
BeanDefinition
when the user has requested to override a bean that doesn't exist, and we never replace aBeanDefinition
.Furthermore, the Bean Override feature is not limited to beans that have a
BeanDefinition
. On the contrary, we actually support overrides for manually registered singletons.In light of the above, we should rename the enum constants in
BeanOverrideStrategy
and revise the documentation (Javadoc and reference manual).I recommend the following renaming.
REPLACE_DEFINITION
→REPLACE
REPLACE_OR_CREATE_DEFINITION
→REPLACE_OR_CREATE
WRAP_BEAN
→WRAP
The text was updated successfully, but these errors were encountered: