Class FilteredMethodValidationPostProcessor
java.lang.Object
org.springframework.aop.framework.ProxyConfig
org.springframework.aop.framework.ProxyProcessorSupport
org.springframework.aop.framework.AbstractAdvisingBeanPostProcessor
org.springframework.aop.framework.autoproxy.AbstractBeanFactoryAwareAdvisingPostProcessor
org.springframework.validation.beanvalidation.MethodValidationPostProcessor
org.springframework.boot.validation.beanvalidation.FilteredMethodValidationPostProcessor
- All Implemented Interfaces:
Serializable,org.springframework.aop.framework.AopInfrastructureBean,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.config.BeanPostProcessor,org.springframework.beans.factory.InitializingBean,org.springframework.core.Ordered
public class FilteredMethodValidationPostProcessor
extends org.springframework.validation.beanvalidation.MethodValidationPostProcessor
Custom
MethodValidationPostProcessor that applies
exclusion filters.- Since:
- 2.4.0
- See Also:
-
Field Summary
Fields inherited from class org.springframework.aop.framework.AbstractAdvisingBeanPostProcessor
advisor, beforeExistingAdvisorsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionFilteredMethodValidationPostProcessor(Collection<? extends MethodValidationExcludeFilter> excludeFilters) Creates a newFilteredMethodValidationPostProcessorthat will apply the givenexcludeFilterswhen identifying beans that are eligible for method validation post-processing.FilteredMethodValidationPostProcessor(Stream<? extends MethodValidationExcludeFilter> excludeFilters) Creates a newFilteredMethodValidationPostProcessorthat will apply the givenexcludeFilterswhen identifying beans that are eligible for method validation post-processing. -
Method Summary
Methods inherited from class org.springframework.validation.beanvalidation.MethodValidationPostProcessor
createMethodValidationAdvice, setValidatedAnnotationType, setValidator, setValidatorFactoryMethods inherited from class org.springframework.aop.framework.autoproxy.AbstractBeanFactoryAwareAdvisingPostProcessor
isEligible, prepareProxyFactory, setBeanFactoryMethods inherited from class org.springframework.aop.framework.AbstractAdvisingBeanPostProcessor
customizeProxyFactory, isEligible, postProcessAfterInitialization, postProcessBeforeInitialization, setBeforeExistingAdvisorsMethods inherited from class org.springframework.aop.framework.ProxyProcessorSupport
evaluateProxyInterfaces, getOrder, getProxyClassLoader, isConfigurationCallbackInterface, isInternalLanguageInterface, setBeanClassLoader, setOrder, setProxyClassLoaderMethods inherited from class org.springframework.aop.framework.ProxyConfig
copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass, toString
-
Constructor Details
-
FilteredMethodValidationPostProcessor
public FilteredMethodValidationPostProcessor(Stream<? extends MethodValidationExcludeFilter> excludeFilters) Creates a newFilteredMethodValidationPostProcessorthat will apply the givenexcludeFilterswhen identifying beans that are eligible for method validation post-processing.- Parameters:
excludeFilters- filters to apply
-
FilteredMethodValidationPostProcessor
public FilteredMethodValidationPostProcessor(Collection<? extends MethodValidationExcludeFilter> excludeFilters) Creates a newFilteredMethodValidationPostProcessorthat will apply the givenexcludeFilterswhen identifying beans that are eligible for method validation post-processing.- Parameters:
excludeFilters- filters to apply
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classorg.springframework.validation.beanvalidation.MethodValidationPostProcessor
-