parent
2e2b371679
commit
12dcf147be
|
@ -29,7 +29,7 @@ import org.springframework.validation.beanvalidation.MethodValidationPostProcess
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom {@link MethodValidationPostProcessor} that applies
|
* Custom {@link MethodValidationPostProcessor} that applies
|
||||||
* {@code MethodValidationExclusionFilter exclusion filters}.
|
* {@link MethodValidationExcludeFilter exclusion filters}.
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
* @since 2.4.0
|
* @since 2.4.0
|
||||||
|
@ -39,8 +39,8 @@ public class FilteredMethodValidationPostProcessor extends MethodValidationPostP
|
||||||
private final Collection<MethodValidationExcludeFilter> excludeFilters;
|
private final Collection<MethodValidationExcludeFilter> excludeFilters;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new {@code ExcludingMethodValidationPostProcessor} that will apply the
|
* Creates a new {@code FilteredMethodValidationPostProcessor} that will apply the
|
||||||
* given {@code exclusionFilters} when identifying beans that are eligible for method
|
* given {@code excludeFilters} when identifying beans that are eligible for method
|
||||||
* validation post-processing.
|
* validation post-processing.
|
||||||
* @param excludeFilters filters to apply
|
* @param excludeFilters filters to apply
|
||||||
*/
|
*/
|
||||||
|
@ -49,8 +49,8 @@ public class FilteredMethodValidationPostProcessor extends MethodValidationPostP
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new {@code ExcludingMethodValidationPostProcessor} that will apply the
|
* Creates a new {@code FilteredMethodValidationPostProcessor} that will apply the
|
||||||
* given {@code exclusionFilters} when identifying beans that are eligible for method
|
* given {@code excludeFilters} when identifying beans that are eligible for method
|
||||||
* validation post-processing.
|
* validation post-processing.
|
||||||
* @param excludeFilters filters to apply
|
* @param excludeFilters filters to apply
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -20,14 +20,13 @@ import java.lang.annotation.Annotation;
|
||||||
|
|
||||||
import org.springframework.core.annotation.MergedAnnotations;
|
import org.springframework.core.annotation.MergedAnnotations;
|
||||||
import org.springframework.core.annotation.MergedAnnotations.SearchStrategy;
|
import org.springframework.core.annotation.MergedAnnotations.SearchStrategy;
|
||||||
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A filter for excluding types from method validation.
|
* A filter for excluding types from method validation.
|
||||||
*
|
*
|
||||||
* @author Andy Wilkinson
|
* @author Andy Wilkinson
|
||||||
* @since 2.4.0
|
* @since 2.4.0
|
||||||
* @see MethodValidationPostProcessor
|
* @see FilteredMethodValidationPostProcessor
|
||||||
*/
|
*/
|
||||||
public interface MethodValidationExcludeFilter {
|
public interface MethodValidationExcludeFilter {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue