-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancementA general enhancement
Description
Sam Brannen opened SPR-14058 and commented
Status Quo
@Qualifier currently cannot be used as a meta-annotation in composed annotations with attribute overrides configured via @AliasFor.
The reason is that Spring's official autowiring support does not function properly if @Qualifier is declared as a meta-annotation with the qualifier set to an empty string (e.g., when the user chooses not to specify a qualifier when using the composed annotation).
Impetus
This feature would be beneficial for #18151 & #18628 and is, in general, an enabler for anyone who wishes to use @Qualifier with string-based qualifier values in composed annotations.
Deliverables
- Allow
@Qualifierto be used as a meta-annotation in composed annotations with explicit attribute overrides for string-based qualifiers.
Affects: 4.2 GA
Issue Links:
- Use AnnotatedElementUtils instead of AnnotationUtils wherever feasible [SPR-13440] #18020 Use AnnotatedElementUtils instead of AnnotationUtils wherever feasible
- Allow @Autowired to be declared on parameters [SPR-14057] #18629 Allow
@Autowiredto be declared on parameters - Introduce autowiring support for individual handler method parameters [SPR-14056] #18628 Introduce autowiring support for individual handler method parameters
- Introduce support for JUnit 5 in the TestContext framework [SPR-13575] #18151 Introduce support for JUnit 5 in the TestContext framework
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancementA general enhancement