Consider the following code:
import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; public class AnnotationTest { @Generic
Not having generic annotations is sadly a limitation of the framework. One solution is to have a field describing the desired class and checking/casting types at runtime.