I have a simple annotation:
@Retention(RetentionPolicy.RUNTIME)
public @interface ContextStarted {
}
And I want to pass this into a method with the signature:
void fireEvent(Object var1, Annotation... var2)
How do I create an instance of java.lang.annotation
from a class that I know is an annotation?
Many thanks.
Aucun commentaire:
Enregistrer un commentaire