meta-annotation이 정하는 범위

사용자 annotation의 생존과 적용, 조회 방식을 정의한다.

Annotation type

Retention

SOURCE, CLASS, RUNTIME 중 생존 시점을 고른다.

Target

붙일 수 있는 element를 compiler에 알린다.

Inherited

class superclass chain 조회에 참여한다.

Repeatable

같은 annotation을 여러 번 선언한다.

핵심: Documented는 API 문서 노출을 돕지만 runtime 행동을 바꾸지 않는다.