meta-annotation은 애노테이션의 대상·보존·문서·반복 범위를 정한다

사용자 애노테이션의 의미뿐 아니라 소비자가 볼 수 있는 시점과 위치를 결정합니다.

@MyAnnotationmetadata contract

@Target

선언 위치

@Retention

SOURCE·CLASS·RUNTIME

@Inherited

class 상속

@Repeatable

중복 선언

@Documented

API 문서

핵심: 소비 시점과 맞지 않는 retention이면 discovery 결과가 비어 있습니다.