Interface AnnotationUsage<A extends Annotation>

All Known Subinterfaces:
MutableAnnotationUsage<A>
All Known Implementing Classes:
DynamicAnnotationUsage, JandexAnnotationUsage, JdkAnnotationUsage

public interface AnnotationUsage<A extends Annotation>
Describes the usage of an annotation class on one of its allowable targets.

The standard way to access values is using getAttributeValue(java.lang.String). Convenience methods have been added for the allowable annotation types. These methods may throw exceptions (generally ClassCastException, if the expected type does not match).

API Note:
Abstracts the underlying source of the annotation information, whether that is the annotation itself, JAXB, Jandex, HCANN, etc.