I think this is not possible, but maybe I'm wrong. So I ask you, if it is possible. ;-)
If I define a annotation that accept only class references which extends some interface or class that is possible:
Class<? extends ServiceProviderIF> serviceIFProvider(); At this annotation I only can add some class which extends ServiceProviderIF. My question: is such a definition also possible for another annotation? That means with pseudocode something like this
Class<? contains AnnotationXYZ> classReferences(); AnnotationXYZ is another annotation definition. And the class which should be added is only accepted by containing this Annotation.
TIA and best regards, Oli