MethodValidationExcludeFilter Type — spring-boot Architecture
Architecture documentation for the MethodValidationExcludeFilter type/interface in MethodValidationExcludeFilter.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/main/java/org/springframework/boot/validation/beanvalidation/MethodValidationExcludeFilter.java lines 31–64
public interface MethodValidationExcludeFilter {
/**
* Evaluate whether to exclude the given {@code type} from method validation.
* @param type the type to evaluate
* @return {@code true} to exclude the type from method validation, otherwise
* {@code false}.
*/
boolean isExcluded(Class<?> type);
/**
* Factory method to create a {@link MethodValidationExcludeFilter} that excludes
* classes by annotation found using an {@link SearchStrategy#INHERITED_ANNOTATIONS
* inherited annotations search strategy}.
* @param annotationType the annotation to check
* @return a {@link MethodValidationExcludeFilter} instance
*/
static MethodValidationExcludeFilter byAnnotation(Class<? extends Annotation> annotationType) {
return byAnnotation(annotationType, SearchStrategy.INHERITED_ANNOTATIONS);
}
/**
* Factory method to create a {@link MethodValidationExcludeFilter} that excludes
* classes by annotation found using the given search strategy.
* @param annotationType the annotation to check
* @param searchStrategy the annotation search strategy
* @return a {@link MethodValidationExcludeFilter} instance
*/
static MethodValidationExcludeFilter byAnnotation(Class<? extends Annotation> annotationType,
SearchStrategy searchStrategy) {
return (type) -> MergedAnnotations.from(type, searchStrategy).isPresent(annotationType);
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free