Interface AnnotationFinder
public interface AnnotationFinder
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault <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 Details
-
DEFAULT
-
-
Method Details
-
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.
-