Interface MethodValidationExcludeFilter
public interface MethodValidationExcludeFilter
A filter for excluding types from method validation.
- Since:
- 2.4.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbyAnnotation(Class<? extends Annotation> annotationType) Factory method to create aMethodValidationExcludeFilterthat excludes classes by annotation found using aninherited annotations search strategy.byAnnotation(Class<? extends Annotation> annotationType, org.springframework.core.annotation.MergedAnnotations.SearchStrategy searchStrategy) Factory method to create aMethodValidationExcludeFilterthat excludes classes by annotation found using the given search strategy.booleanisExcluded(Class<?> type) Evaluate whether to exclude the giventypefrom method validation.
-
Method Details
-
isExcluded
Evaluate whether to exclude the giventypefrom method validation.- Parameters:
type- the type to evaluate- Returns:
trueto exclude the type from method validation, otherwisefalse.
-
byAnnotation
Factory method to create aMethodValidationExcludeFilterthat excludes classes by annotation found using aninherited annotations search strategy.- Parameters:
annotationType- the annotation to check- Returns:
- a
MethodValidationExcludeFilterinstance
-
byAnnotation
static MethodValidationExcludeFilter byAnnotation(Class<? extends Annotation> annotationType, org.springframework.core.annotation.MergedAnnotations.SearchStrategy searchStrategy) Factory method to create aMethodValidationExcludeFilterthat excludes classes by annotation found using the given search strategy.- Parameters:
annotationType- the annotation to checksearchStrategy- the annotation search strategy- Returns:
- a
MethodValidationExcludeFilterinstance
-