Configurators and Intercept Producers
public class Greeter {
public Greeter() {
}
public void say(String name) {
System.out.println("Hi, " + name);
}
}@Inherited
@InterceptorBinding
@Retention(RUNTIME)
@Target({METHOD, TYPE})
public @interface Counted {
public static final class Literal extends AnnotationLiteral<Counted> implements Counted {
public static final Literal INSTANCE = new Literal();
private static final long serialVersionUID = 1L;
}
}Last updated