Package org.apache.bval.jsr
Class ApacheValidationProvider
- java.lang.Object
-
- org.apache.bval.jsr.ApacheValidationProvider
-
- All Implemented Interfaces:
jakarta.validation.spi.ValidationProvider<ApacheValidatorConfiguration>
public class ApacheValidationProvider extends Object implements jakarta.validation.spi.ValidationProvider<ApacheValidatorConfiguration>
Description: Implementation ofValidationProvider
for jsr implementation of the apache-validation framework.
User: roman.stumm
Date: 29.10.2008
Time: 14:45:41
-
-
Constructor Summary
Constructors Constructor Description ApacheValidationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.validation.ValidatorFactory
buildValidatorFactory(jakarta.validation.spi.ConfigurationState configuration)
jakarta.validation.Configuration<?>
createGenericConfiguration(jakarta.validation.spi.BootstrapState state)
ApacheValidatorConfiguration
createSpecializedConfiguration(jakarta.validation.spi.BootstrapState state)
boolean
isSuitable(Class<? extends jakarta.validation.Configuration<?>> builderClass)
Learn whether a particular builder class is suitable for thisValidationProvider
.
-
-
-
Method Detail
-
isSuitable
public boolean isSuitable(Class<? extends jakarta.validation.Configuration<?>> builderClass)
Learn whether a particular builder class is suitable for thisValidationProvider
.- Parameters:
builderClass
-- Returns:
- boolean suitability
-
createSpecializedConfiguration
public ApacheValidatorConfiguration createSpecializedConfiguration(jakarta.validation.spi.BootstrapState state)
- Specified by:
createSpecializedConfiguration
in interfacejakarta.validation.spi.ValidationProvider<ApacheValidatorConfiguration>
-
createGenericConfiguration
public jakarta.validation.Configuration<?> createGenericConfiguration(jakarta.validation.spi.BootstrapState state)
- Specified by:
createGenericConfiguration
in interfacejakarta.validation.spi.ValidationProvider<ApacheValidatorConfiguration>
-
buildValidatorFactory
public jakarta.validation.ValidatorFactory buildValidatorFactory(jakarta.validation.spi.ConfigurationState configuration)
- Specified by:
buildValidatorFactory
in interfacejakarta.validation.spi.ValidationProvider<ApacheValidatorConfiguration>
- Throws:
jakarta.validation.ValidationException
- if the ValidatorFactory cannot be built
-
-