Closed
Description
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
- Introduce support in
AnnotatedElementUtils
for processing multiple composed annotations above a single annotated element.
Affects: 4.2 GA
Issue Links:
- Support @Cache* as merged composed annotations [SPR-13475] #18054 Support
@Cache
* as merged composed annotations ("is depended on by") - Support repeatable annotations as composed annotations [SPR-13973] #18545 Support repeatable annotations as composed annotations