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 aMethodValidationExcludeFilter
that 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 aMethodValidationExcludeFilter
that excludes classes by annotation found using the given search strategy.boolean
isExcluded
(Class<?> type) Evaluate whether to exclude the giventype
from method validation.
-
Method Details
-
isExcluded
Evaluate whether to exclude the giventype
from method validation.- Parameters:
type
- the type to evaluate- Returns:
true
to exclude the type from method validation, otherwisefalse
.
-
byAnnotation
Factory method to create aMethodValidationExcludeFilter
that excludes classes by annotation found using aninherited 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 aMethodValidationExcludeFilter
that excludes classes by annotation found using the given search strategy.- Parameters:
annotationType
- the annotation to checksearchStrategy
- the annotation search strategy- Returns:
- a
MethodValidationExcludeFilter
instance
-