Skip to content

Consistent support for generic FactoryBean type matching when using getBeanProvider #32590

@jhoeller

Description

@jhoeller

Related to #32489, there is an inconsistency between @Autowired injection point resolution and getBeanProvider return values in that the former takes targetType into account for generic FactoryBean type resolution (in its second step in GenericTypeAwareAutowireCandidateResolver) whereas the latter does not (due to the single type matching step in DefaultListableBeanFactory itself). This can be brought in sync through letting a FactoryBean instance go through the same matching steps as a regular bean instance with generics.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions