Package org.apache.bval.jsr.metadata
Interface MetadataSource
-
- All Known Implementing Classes:
ValidationMappingParser
public interface MetadataSource
Service interface for user metadata customizations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
initialize(ApacheValidatorFactory validatorFactory)
Initialize theMetadataSource
.void
process(jakarta.validation.spi.ConfigurationState configurationState, Consumer<ValidatorMappingProvider> addMappingProvider, BiConsumer<Class<?>,MetadataBuilder.ForBean<?>> addBuilder)
AddConstraintValidator
mappings and/or metadata builders.
-
-
-
Method Detail
-
initialize
default void initialize(ApacheValidatorFactory validatorFactory)
Initialize theMetadataSource
.- Parameters:
validatorFactory
-
-
process
void process(jakarta.validation.spi.ConfigurationState configurationState, Consumer<ValidatorMappingProvider> addMappingProvider, BiConsumer<Class<?>,MetadataBuilder.ForBean<?>> addBuilder)
AddConstraintValidator
mappings and/or metadata builders.- Parameters:
configurationState
- may be read for environmental cuesaddMappingProvider
-addBuilder
-
-
-