接口 MethodValidationExcludeFilter
public interface MethodValidationExcludeFilter
A filter for excluding types from method validation.
- 从以下版本开始:
- 4.0
- 作者:
- Andy Wilkinson, Harry Yang
- 另请参阅:
-
方法概要
修饰符和类型方法说明byAnnotation(Class<? extends Annotation> annotationType) Factory method to create aMethodValidationExcludeFilterthat excludes classes by annotation.byAnnotation(Class<? extends Annotation> annotationType, cn.taketoday.core.annotation.MergedAnnotations.SearchStrategy searchStrategy) Factory method to create aMethodValidationExcludeFilterthat excludes classes by annotation.booleanisExcluded(Class<?> type) Evaluate whether to exclude the giventypefrom method validation.
-
方法详细资料
-
isExcluded
Evaluate whether to exclude the giventypefrom method validation.- 参数:
type- the type to evaluate- 返回:
trueto exclude the type from method validation, otherwisefalse.
-
byAnnotation
Factory method to create aMethodValidationExcludeFilterthat excludes classes by annotation.- 参数:
annotationType- the annotation to check- 返回:
- a
MethodValidationExcludeFilterinstance
-
byAnnotation
static MethodValidationExcludeFilter byAnnotation(Class<? extends Annotation> annotationType, cn.taketoday.core.annotation.MergedAnnotations.SearchStrategy searchStrategy) Factory method to create aMethodValidationExcludeFilterthat excludes classes by annotation.- 参数:
annotationType- the annotation to checksearchStrategy- the annotation search strategy- 返回:
- a
MethodValidationExcludeFilterinstance
-