-
Couldn't load subscription status.
- Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
Sam Brannen opened SPR-13289 and commented
Status Quo
#16137 introduced support for annotation attribute aliases via @AliasFor. For example, this support allows @ContextConfiguration from the spring-test module to declare aliases as follows:
public @interface ContextConfiguration {
@AliasFor(attribute = "locations")
String[] value() default {};
@AliasFor(attribute = "value")
String[] locations() default {};
// ...
}For greater readability, it would be beneficial to be able to omit the attribute = "..." declaration by providing a value alias for attribute.
Deliverables
- Introduce a
valuealias forattributein@AliasFor.
Affects: 4.2 RC1
Issue Links:
- Introduce unified support for declaring and looking up annotation attribute aliases [SPR-11512] #16137 Introduce unified support for declaring and looking up annotation attribute aliases ("depends on")
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement