Class AnnotationDetectionMethodCallback<A extends Annotation>

java.lang.Object
org.springframework.data.util.AnnotationDetectionMethodCallback<A>
All Implemented Interfaces:
ReflectionUtils.MethodCallback

public class AnnotationDetectionMethodCallback<A extends Annotation> extends Object implements ReflectionUtils.MethodCallback
ReflectionUtils.MethodCallback to find annotations of a given type.
Author:
Oliver Gierke, Christoph Strobl, Mark Paluch, Johannes Englmeier
  • Constructor Details

    • AnnotationDetectionMethodCallback

      public AnnotationDetectionMethodCallback(Class<A> annotationType)
      Creates a new AnnotationDetectionMethodCallback for the given annotation type.
      Parameters:
      annotationType - must not be null.
    • AnnotationDetectionMethodCallback

      public AnnotationDetectionMethodCallback(Class<A> annotationType, boolean enforceUniqueness)
      Creates a new AnnotationDetectionMethodCallback for the given annotation type.
      Parameters:
      annotationType - must not be null.
      enforceUniqueness - whether to fail if multiple methods with the annotation are found.
  • Method Details