Skip to content

Support multiple composed annotations on a single annotated element [SPR-13486] #17490

Closed
@spring-projects-issues

Description

@spring-projects-issues

Sam Brannen opened SPR-13486 and commented

Status Quo

The findMergedAnnotation*(...) and getMergedAnnotation*(...) methods in AnnotatedElementUtils only support a single target annotation and therefore a single composed annotation.

However, there are certain scenarios for which it would be beneficial to retrieve multiple composed annotations on a single annotated element. As a concrete example, see #18054 which requests support for @Cacheable, @CacheEvict, and CachePut as merged composed annotations.

Deliverables

  1. Introduce support in AnnotatedElementUtils for processing multiple composed annotations above a single annotated element.

Affects: 4.2 GA

Issue Links:

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