Interface AnnotationFinder


public interface AnnotationFinder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final AnnotationFinder
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • Field Details

  • 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.