spring-framework/framework-docs/modules/ROOT/pages
Simon Baslé d5c7a5e2db Bean overriding by type uses isAutowireCandidate for matching
This commit uses the bean factory `isAutowiredCandidate` method directly
in `BeanOverrideBeanFactoryPostProcessor` to select a single match among
multiple candidates when matching by type.

The expected consequence, in most cases, is that this will delegate to
a `@Qualifier`-aware `QualifierAnnotationAutowireCandidateResolver`.
In that sense, bean overriding by-type matching is now potentially
taking Qualifier annotations or meta-annotations into account.

It also changes the way existing bean definitions are checked in case
a bean name has been specified: factory beans are now taken into account
when checking the type of an existing definition matches the expected
bean override type.

Closes gh-32822
2024-05-21 14:06:52 +02:00
..
core Document SpEL IndexAccessor support in the reference manual 2024-05-15 11:47:42 +02:00
data-access Polish JdbcTemplate Best Practices section 2024-05-06 18:28:54 +02:00
integration Merge branch '6.1.x' 2024-05-20 10:24:42 +02:00
languages Revise IoC container introduction for modern configuration styles 2024-05-08 17:51:25 +02:00
testing Bean overriding by type uses isAutowireCandidate for matching 2024-05-21 14:06:52 +02:00
web Support Content Negotiation with @ExceptionHandler 2024-05-20 17:22:30 +02:00
appendix.adoc
core.adoc
data-access.adoc
index.adoc
integration.adoc
languages.adoc
overview.adoc Improve wording in Spring Framework Overview documentation 2024-05-15 19:00:27 +02:00
page-layout.adoc
rsocket.adoc
testing.adoc
web-reactive.adoc
web.adoc