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.config.InstantiationAwareBeanPostProcessor
,org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor
,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, beforeExistingAdvisors
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionFilteredMethodValidationPostProcessor
(Collection<? extends MethodValidationExcludeFilter> excludeFilters) Creates a newFilteredMethodValidationPostProcessor
that will apply the givenexcludeFilters
when identifying beans that are eligible for method validation post-processing.FilteredMethodValidationPostProcessor
(Stream<? extends MethodValidationExcludeFilter> excludeFilters) Creates a newFilteredMethodValidationPostProcessor
that will apply the givenexcludeFilters
when identifying beans that are eligible for method validation post-processing. -
Method Summary
Methods inherited from class org.springframework.validation.beanvalidation.MethodValidationPostProcessor
createMethodValidationAdvice, setAdaptConstraintViolations, setValidatedAnnotationType, setValidator, setValidatorFactory, setValidatorProvider
Methods inherited from class org.springframework.aop.framework.autoproxy.AbstractBeanFactoryAwareAdvisingPostProcessor
isEligible, prepareProxyFactory, setBeanFactory
Methods inherited from class org.springframework.aop.framework.AbstractAdvisingBeanPostProcessor
customizeProxyFactory, determineBeanType, isEligible, postProcessAfterInitialization, setBeforeExistingAdvisors
Methods inherited from class org.springframework.aop.framework.ProxyProcessorSupport
evaluateProxyInterfaces, getOrder, getProxyClassLoader, isConfigurationCallbackInterface, isInternalLanguageInterface, setBeanClassLoader, setOrder, setProxyClassLoader
Methods inherited from class org.springframework.aop.framework.ProxyConfig
copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
Methods inherited from interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
postProcessAfterInstantiation, postProcessBeforeInstantiation, postProcessProperties
Methods inherited from interface org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor
determineCandidateConstructors, getEarlyBeanReference, predictBeanType
-
Constructor Details
-
FilteredMethodValidationPostProcessor
public FilteredMethodValidationPostProcessor(Stream<? extends MethodValidationExcludeFilter> excludeFilters) Creates a newFilteredMethodValidationPostProcessor
that will apply the givenexcludeFilters
when identifying beans that are eligible for method validation post-processing.- Parameters:
excludeFilters
- filters to apply
-
FilteredMethodValidationPostProcessor
public FilteredMethodValidationPostProcessor(Collection<? extends MethodValidationExcludeFilter> excludeFilters) Creates a newFilteredMethodValidationPostProcessor
that will apply the givenexcludeFilters
when identifying beans that are eligible for method validation post-processing.- Parameters:
excludeFilters
- filters to apply
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in classorg.springframework.validation.beanvalidation.MethodValidationPostProcessor
-