Interface MethodValidationExcludeFilter


public interface MethodValidationExcludeFilter
A filter for excluding types from method validation.
Since:
2.4.0
See Also:
  • Method Details

    • isExcluded

      boolean isExcluded(Class<?> type)
      Evaluate whether to exclude the given type from method validation.
      Parameters:
      type - the type to evaluate
      Returns:
      true to exclude the type from method validation, otherwise false.
    • byAnnotation

      static MethodValidationExcludeFilter byAnnotation(Class<? extends Annotation> annotationType)
      Factory method to create a MethodValidationExcludeFilter that excludes classes by annotation found using an inherited annotations search strategy.
      Parameters:
      annotationType - the annotation to check
      Returns:
      a MethodValidationExcludeFilter instance
    • byAnnotation

      static MethodValidationExcludeFilter byAnnotation(Class<? extends Annotation> annotationType, org.springframework.core.annotation.MergedAnnotations.SearchStrategy searchStrategy)
      Factory method to create a MethodValidationExcludeFilter that excludes classes by annotation found using the given search strategy.
      Parameters:
      annotationType - the annotation to check
      searchStrategy - the annotation search strategy
      Returns:
      a MethodValidationExcludeFilter instance