Annotation Type Retention


  • @Retention(RUNTIME)
    public @interface Retention
    Defines a meta-annotation for determining the scope of retention for an annotation. If the retention annotation is not set RetentionPolicy.CLASS is used as default retention.
    Since:
    1.5
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      RetentionPolicy value