Create Annotation instance with defaults, in Java
To create an instance you need to create a class that implements: java.lang.annotation.Annotation and the annotation you want to “simulate” For example: public class MySettings implements Annotation, Settings But you need to pay special attention to the correct implementation of equals and hashCode according to the Annotation interface. http://download.oracle.com/javase/1.5.0/docs/api/java/lang/annotation/Annotation.html If you do not want to … Read more