Package org.apache.bval.jsr
Class ApacheFactoryContext
- java.lang.Object
-
- org.apache.bval.jsr.ApacheFactoryContext
-
- All Implemented Interfaces:
jakarta.validation.ValidatorContext
public class ApacheFactoryContext extends Object implements jakarta.validation.ValidatorContext
Description: Represents the context that is used to createClassValidator
instances.
-
-
Constructor Summary
Constructors Constructor Description ApacheFactoryContext(ApacheValidatorFactory factory)
Create a new ApacheFactoryContext instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApacheFactoryContext
addValueExtractor(jakarta.validation.valueextraction.ValueExtractor<?> extractor)
ApacheFactoryContext
clockProvider(jakarta.validation.ClockProvider clockProvider)
ApacheFactoryContext
constraintValidatorFactory(jakarta.validation.ConstraintValidatorFactory constraintValidatorFactory)
jakarta.validation.ClockProvider
getClockProvider()
ConstraintCached
getConstraintsCache()
jakarta.validation.ConstraintValidatorFactory
getConstraintValidatorFactory()
Get theConstraintValidatorFactory
.DescriptorManager
getDescriptorManager()
ApacheValidatorFactory
getFactory()
GroupsComputer
getGroupsComputer()
jakarta.validation.MessageInterpolator
getMessageInterpolator()
Get theMessageInterpolator
.jakarta.validation.ConstraintValidator
getOrComputeConstraintValidator(ConstraintD<?> constraint, Supplier<jakarta.validation.ConstraintValidator> computer)
jakarta.validation.ParameterNameProvider
getParameterNameProvider()
jakarta.validation.TraversableResolver
getTraversableResolver()
Get theTraversableResolver
.jakarta.validation.Validator
getValidator()
ValueExtractors
getValueExtractors()
ApacheFactoryContext
messageInterpolator(jakarta.validation.MessageInterpolator messageInterpolator)
ApacheFactoryContext
parameterNameProvider(jakarta.validation.ParameterNameProvider parameterNameProvider)
ApacheFactoryContext
traversableResolver(jakarta.validation.TraversableResolver traversableResolver)
-
-
-
Constructor Detail
-
ApacheFactoryContext
public ApacheFactoryContext(ApacheValidatorFactory factory)
Create a new ApacheFactoryContext instance.- Parameters:
factory
- validator factorymetaBeanFinder
- meta finder
-
-
Method Detail
-
messageInterpolator
public ApacheFactoryContext messageInterpolator(jakarta.validation.MessageInterpolator messageInterpolator)
- Specified by:
messageInterpolator
in interfacejakarta.validation.ValidatorContext
-
traversableResolver
public ApacheFactoryContext traversableResolver(jakarta.validation.TraversableResolver traversableResolver)
- Specified by:
traversableResolver
in interfacejakarta.validation.ValidatorContext
-
constraintValidatorFactory
public ApacheFactoryContext constraintValidatorFactory(jakarta.validation.ConstraintValidatorFactory constraintValidatorFactory)
- Specified by:
constraintValidatorFactory
in interfacejakarta.validation.ValidatorContext
-
parameterNameProvider
public ApacheFactoryContext parameterNameProvider(jakarta.validation.ParameterNameProvider parameterNameProvider)
- Specified by:
parameterNameProvider
in interfacejakarta.validation.ValidatorContext
-
clockProvider
public ApacheFactoryContext clockProvider(jakarta.validation.ClockProvider clockProvider)
- Specified by:
clockProvider
in interfacejakarta.validation.ValidatorContext
-
addValueExtractor
public ApacheFactoryContext addValueExtractor(jakarta.validation.valueextraction.ValueExtractor<?> extractor)
- Specified by:
addValueExtractor
in interfacejakarta.validation.ValidatorContext
-
getConstraintValidatorFactory
public jakarta.validation.ConstraintValidatorFactory getConstraintValidatorFactory()
Get theConstraintValidatorFactory
.- Returns:
ConstraintValidatorFactory
-
getValidator
public jakarta.validation.Validator getValidator()
- Specified by:
getValidator
in interfacejakarta.validation.ValidatorContext
-
getMessageInterpolator
public jakarta.validation.MessageInterpolator getMessageInterpolator()
Get theMessageInterpolator
.- Returns:
MessageInterpolator
-
getTraversableResolver
public jakarta.validation.TraversableResolver getTraversableResolver()
Get theTraversableResolver
.- Returns:
TraversableResolver
-
getParameterNameProvider
public jakarta.validation.ParameterNameProvider getParameterNameProvider()
-
getClockProvider
public jakarta.validation.ClockProvider getClockProvider()
-
getValueExtractors
public ValueExtractors getValueExtractors()
-
getDescriptorManager
public DescriptorManager getDescriptorManager()
-
getGroupsComputer
public GroupsComputer getGroupsComputer()
-
getConstraintsCache
public ConstraintCached getConstraintsCache()
-
getFactory
public ApacheValidatorFactory getFactory()
-
getOrComputeConstraintValidator
public jakarta.validation.ConstraintValidator getOrComputeConstraintValidator(ConstraintD<?> constraint, Supplier<jakarta.validation.ConstraintValidator> computer)
-
-