Interface AnnotationFinder


  • public interface AnnotationFinder
    • 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.