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, AopInfrastructureBean, Aware, BeanClassLoaderAware, BeanFactoryAware, BeanPostProcessor, InstantiationAwareBeanPostProcessor, SmartInstantiationAwareBeanPostProcessor, InitializingBean, Ordered
Custom
MethodValidationPostProcessor that applies
exclusion filters.- Since:
- 2.4.0
- Author:
- Andy Wilkinson
- See Also:
-
Field Summary
Fields inherited from class AbstractBeanFactoryAwareAdvisingPostProcessor
beanFactoryFields inherited from class AbstractAdvisingBeanPostProcessor
advisor, beforeExistingAdvisorsFields inherited from interface 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 MethodValidationPostProcessor
createMethodValidationAdvice, setAdaptConstraintViolations, setValidatedAnnotationType, setValidator, setValidatorFactory, setValidatorProviderMethods inherited from class AbstractBeanFactoryAwareAdvisingPostProcessor
isEligible, prepareProxyFactory, setBeanFactoryMethods inherited from class AbstractAdvisingBeanPostProcessor
customizeProxyFactory, determineBeanType, isEligible, postProcessAfterInitialization, setBeforeExistingAdvisorsMethods inherited from class ProxyProcessorSupport
evaluateProxyInterfaces, getOrder, getProxyClassLoader, isConfigurationCallbackInterface, isInternalLanguageInterface, setBeanClassLoader, setOrder, setProxyClassLoaderMethods inherited from class ProxyConfig
copyDefault, copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface BeanPostProcessor
postProcessBeforeInitializationMethods inherited from interface InstantiationAwareBeanPostProcessor
postProcessAfterInstantiation, postProcessBeforeInstantiation, postProcessPropertiesMethods inherited from interface SmartInstantiationAwareBeanPostProcessor
determineCandidateConstructors, getEarlyBeanReference, predictBeanType
-
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 interfaceInitializingBean- Overrides:
afterPropertiesSetin classMethodValidationPostProcessor
-