Skip to content

Instantly share code, notes, and snippets.

@m-doi
Last active October 6, 2015 04:21
Show Gist options
  • Save m-doi/e2d241a1127d9743e40f to your computer and use it in GitHub Desktop.
Save m-doi/e2d241a1127d9743e40f to your computer and use it in GitHub Desktop.

1 Day 1 JIRA :SPR-13486

https://jira.spring.io/browse/SPR-13486?jql=project%20%3D%20SPR%20AND%20issuetype%20%3D%20%22New%20Feature%22

Support multiple composed annotations on a single annotated element 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 SPR-13475 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.

複数アノテーションのサポート

現状

AnnotatedElementUtils(※)のfindMergedAnnotation、getMergedAnnotationメソッドは単一のアノテーションしかサポートされていない—従って、単一構成のアノテーションしかサポートされない。 しかしながら、複数のアノテーションを検索する方が便利なこともある。具体例をあげると、@Cacheable,、@CacheEvict、@CachePutの合成アノテーションなど(SPR-13475)

##成果物(Doneの定義?) AnnotatedElementUtilsで複数アノテーションをサポートする方法を紹介する?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment