1 *java.lang.annotation.Retention* *Retention* Indicates how long annotations with
3 public interface class Retention
5 implements |java.lang.annotation.Annotation|
7 |java.lang.annotation.Retention_Description|
8 |java.lang.annotation.Retention_Fields|
9 |java.lang.annotation.Retention_Constructors|
10 |java.lang.annotation.Retention_Methods|
12 ================================================================================
14 *java.lang.annotation.Retention_Description*
16 Indicates how long annotations with the annotated type are to be retained. If
17 no Retention annotation is present on an annotation type declaration, the
18 retention policy defaults to RetentionPolicy.CLASS.
20 A Target meta-annotation has effect only if the meta-annotated type is use
21 directly for annotation. It has no effect if the meta-annotated type is used as
22 a member type in another annotation type.