Consistent support for generic FactoryBean
type matching when using getBeanProvider
#32590
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Related to #32489, there is an inconsistency between
@Autowired
injection point resolution andgetBeanProvider
return values in that the former takestargetType
into account for genericFactoryBean
type resolution (in its second step inGenericTypeAwareAutowireCandidateResolver
) whereas the latter does not (due to the single type matching step inDefaultListableBeanFactory
itself). This can be brought in sync through letting aFactoryBean
instance go through the same matching steps as a regular bean instance with generics.The text was updated successfully, but these errors were encountered: