Class DefaultValidatorFactory
java.lang.Object
io.micronaut.validation.validator.DefaultValidatorFactory
- All Implemented Interfaces:
jakarta.validation.ValidatorFactory
,AutoCloseable
@Requires(missingBeans=jakarta.validation.ValidatorFactory.class)
@Internal
@Singleton
public class DefaultValidatorFactory
extends Object
implements jakarta.validation.ValidatorFactory
Default validator factory implementation.
- Since:
- 1.2.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionThe constructor.DefaultValidatorFactory
(ValidatorConfiguration configuration) The constructor.DefaultValidatorFactory
(Validator validator, ValidatorConfiguration configuration) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
jakarta.validation.ClockProvider
jakarta.validation.ConstraintValidatorFactory
jakarta.validation.MessageInterpolator
jakarta.validation.ParameterNameProvider
jakarta.validation.TraversableResolver
jakarta.validation.Validator
<T> T
jakarta.validation.ValidatorContext
-
Constructor Details
-
DefaultValidatorFactory
public DefaultValidatorFactory()The constructor. -
DefaultValidatorFactory
The constructor.- Parameters:
configuration
- The configuration.
-
DefaultValidatorFactory
Default constructor.- Parameters:
validator
- The validator.configuration
- The configuration.
-
-
Method Details
-
getValidator
public jakarta.validation.Validator getValidator()- Specified by:
getValidator
in interfacejakarta.validation.ValidatorFactory
-
usingContext
public jakarta.validation.ValidatorContext usingContext()- Specified by:
usingContext
in interfacejakarta.validation.ValidatorFactory
-
getMessageInterpolator
public jakarta.validation.MessageInterpolator getMessageInterpolator()- Specified by:
getMessageInterpolator
in interfacejakarta.validation.ValidatorFactory
-
getTraversableResolver
public jakarta.validation.TraversableResolver getTraversableResolver()- Specified by:
getTraversableResolver
in interfacejakarta.validation.ValidatorFactory
-
getConstraintValidatorFactory
public jakarta.validation.ConstraintValidatorFactory getConstraintValidatorFactory()- Specified by:
getConstraintValidatorFactory
in interfacejakarta.validation.ValidatorFactory
-
getParameterNameProvider
public jakarta.validation.ParameterNameProvider getParameterNameProvider()- Specified by:
getParameterNameProvider
in interfacejakarta.validation.ValidatorFactory
-
getClockProvider
public jakarta.validation.ClockProvider getClockProvider()- Specified by:
getClockProvider
in interfacejakarta.validation.ValidatorFactory
-
unwrap
- Specified by:
unwrap
in interfacejakarta.validation.ValidatorFactory
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacejakarta.validation.ValidatorFactory
-