Exit Full View

Feather2 / feather2-javaexamples / src / main / java / ExampleAnnotation.java

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE})
@Retention(value = RetentionPolicy.RUNTIME)
public @interface ExampleAnnotation {

    String greeting() default "";

    boolean required() default false;

    int count() default 2;
}