@ConfigurationProperties(value="micronaut.validator") public class DefaultValidatorConfiguration extends Object implements ValidatorConfiguration, Toggleable, ValidatorContext
ENABLED, PREFIX
Constructor and Description |
---|
DefaultValidatorConfiguration() |
@NonNull public ConstraintValidatorRegistry getConstraintValidatorRegistry()
getConstraintValidatorRegistry
in interface ValidatorConfiguration
public boolean isEnabled()
isEnabled
in interface Toggleable
public DefaultValidatorConfiguration setEnabled(boolean enabled)
enabled
- True if it is@Inject public DefaultValidatorConfiguration setConstraintValidatorRegistry(@Nullable ConstraintValidatorRegistry constraintValidatorRegistry)
constraintValidatorRegistry
- The registry to use@NonNull public ValueExtractorRegistry getValueExtractorRegistry()
getValueExtractorRegistry
in interface ValidatorConfiguration
@Inject public DefaultValidatorConfiguration setValueExtractorRegistry(@Nullable ValueExtractorRegistry valueExtractorRegistry)
valueExtractorRegistry
- The registry@NonNull public ClockProvider getClockProvider()
getClockProvider
in interface ValidatorConfiguration
@Inject public DefaultValidatorConfiguration setClockProvider(@Nullable ClockProvider clockProvider)
clockProvider
- The clock provider@NonNull public TraversableResolver getTraversableResolver()
getTraversableResolver
in interface ValidatorConfiguration
@Inject public DefaultValidatorConfiguration setTraversableResolver(@Nullable TraversableResolver traversableResolver)
traversableResolver
- The resolver@NonNull public MessageSource getMessageSource()
getMessageSource
in interface ValidatorConfiguration
@Inject public DefaultValidatorConfiguration setMessageSource(@Nullable MessageSource messageSource)
messageSource
- The message source@NonNull public ExecutionHandleLocator getExecutionHandleLocator()
ValidatorConfiguration
getExecutionHandleLocator
in interface ValidatorConfiguration
@Inject public DefaultValidatorConfiguration setExecutionHandleLocator(@Nullable ExecutionHandleLocator executionHandleLocator)
executionHandleLocator
- The locatorpublic ValidatorContext messageInterpolator(MessageInterpolator messageInterpolator)
messageInterpolator
in interface ValidatorContext
public ValidatorContext traversableResolver(TraversableResolver traversableResolver)
traversableResolver
in interface ValidatorContext
public ValidatorContext constraintValidatorFactory(ConstraintValidatorFactory factory)
constraintValidatorFactory
in interface ValidatorContext
public ValidatorContext parameterNameProvider(ParameterNameProvider parameterNameProvider)
parameterNameProvider
in interface ValidatorContext
public ValidatorContext clockProvider(ClockProvider clockProvider)
clockProvider
in interface ValidatorContext
public ValidatorContext addValueExtractor(javax.validation.valueextraction.ValueExtractor<?> extractor)
addValueExtractor
in interface ValidatorContext
public Validator getValidator()
getValidator
in interface ValidatorContext