Skip to content

Add SPI to customize the qualifiers to use for a particular bean [SPR-14725] #19290

@spring-projects-issues

Description

@spring-projects-issues

Stéphane Nicoll opened SPR-14725 and commented

The container is currently looking at very specific places to figure out the qualifiers of a particular bean dependency:

  • The bean factory method, if any (i.e. the @Bean method)
  • The target class (annotations at class level)
  • Additional checks on the bean definition itself (we should check if those are properly documented)

Certain bean definitions are created on the fly and do not have a "bean factory method". Yet, it would be very interesting to specify a places where qualifier information is to be found.

See also spring-projects/spring-boot#6753


Affects: 4.3.2

Referenced from: commits 2b2cc2d, 0dce570, 2b0bf9f

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