- All Known Implementing Classes:
DefaultAnnotationManager
public interface AnnotationManager
The AnnotationManager API.
- Author:
- Manfred Riem ([email protected]), Arjan Tijms
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The annotation information. -
Method Summary
Modifier and TypeMethodDescriptionReturns the set of all annotated classes.getAnnotations(Class<?>... annotationClasses)
Get the annotations.<T> List<AnnotationManager.AnnotationInfo<T>>
getAnnotations(Class<T> annotationClass)
Get the annotations.<T> List<AnnotationManager.AnnotationInfo<T>>
getAnnotationsByTarget(Class<T> annotationClass, AnnotatedElement type)
Get the annotation for the annotation class and annotated element type.getInstances(Class<?>... instanceClasses)
Get the instances.getInstances(Class<T> instanceClass)
Get the instances.
-
Method Details
-
getAnnotations
Get the annotations.- Type Parameters:
T
- the type.- Parameters:
annotationClass
- the annotation class.- Returns:
- the typed list of annotations.
-
getAnnotations
Get the annotations.- Parameters:
annotationClasses
- the annotation classes.- Returns:
- the list of annotations.
-
getInstances
Get the instances.- Type Parameters:
T
- the type.- Parameters:
instanceClass
- the instance class.- Returns:
- the typed list of instances.
-
getInstances
Get the instances.- Parameters:
instanceClasses
- the instance classes.- Returns:
- the list of instances.
-
getAnnotatedClasses
Returns the set of all annotated classes.- Returns:
- the set of all annotated classes
-
getAnnotationsByTarget
<T> List<AnnotationManager.AnnotationInfo<T>> getAnnotationsByTarget(Class<T> annotationClass, AnnotatedElement type)Get the annotation for the annotation class and annotated element type.- Type Parameters:
T
- the type.- Parameters:
annotationClass
- the annotation class.type
- the annotated element type.- Returns:
- the list of annotations.
-