how can I write a custom annotation that takes another annotation and the values?
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface TestAnnotation{
Class<? extends TestAnnotationChild> annotation();
}
The second annotation
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface TestAnnotationChild{
}
And I would like to do something like
@TestAnnotation(@TestAnnotationChild={values})
How can I do something like that?