Interface AnnotationFinder
-
public interface AnnotationFinder
-
-
Field Summary
Fields Modifier and Type Field Description static AnnotationFinderDEFAULT
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <A extends Annotation>
AfindAnnotation(AnnotatedElement annotatedElement, Class<A> annotationType)The default implementation performs a simple search for a declared annotation matching the search type.
-
-
-
Field Detail
-
DEFAULT
static final AnnotationFinder DEFAULT
-
-
Method Detail
-
findAnnotation
default <A extends Annotation> A findAnnotation(AnnotatedElement annotatedElement, Class<A> annotationType)
The default implementation performs a simple search for a declared annotation matching the search type. Spring provides a more sophisticated annotation search utility that matches on meta-annotations as well.- Type Parameters:
A- Annotation type to search for.- Parameters:
annotatedElement- The element to search.annotationType- The annotation type class.- Returns:
- A matching annotation.
-
-