Package org.apache.bval.jsr.xml
Class ValidationMappingParser
- java.lang.Object
-
- org.apache.bval.jsr.xml.ValidationMappingParser
-
- All Implemented Interfaces:
MetadataSource
public class ValidationMappingParser extends Object implements MetadataSource
Uses JAXB to parse constraints.xml based on the validation-mapping XML schema.
-
-
Constructor Summary
Constructors Constructor Description ValidationMappingParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(ApacheValidatorFactory validatorFactory)
Initialize theMetadataSource
.void
process(jakarta.validation.spi.ConfigurationState configurationState, Consumer<ValidatorMappingProvider> addValidatorMappingProvider, BiConsumer<Class<?>,MetadataBuilder.ForBean<?>> addBuilder)
AddConstraintValidator
mappings and/or metadata builders.
-
-
-
Method Detail
-
initialize
public void initialize(ApacheValidatorFactory validatorFactory)
Description copied from interface:MetadataSource
Initialize theMetadataSource
.- Specified by:
initialize
in interfaceMetadataSource
-
process
public void process(jakarta.validation.spi.ConfigurationState configurationState, Consumer<ValidatorMappingProvider> addValidatorMappingProvider, BiConsumer<Class<?>,MetadataBuilder.ForBean<?>> addBuilder)
Description copied from interface:MetadataSource
AddConstraintValidator
mappings and/or metadata builders.- Specified by:
process
in interfaceMetadataSource
- Parameters:
configurationState
- may be read for environmental cues
-
-