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 Details

    • DefaultValidatorFactory

      public DefaultValidatorFactory()
      The constructor.
    • DefaultValidatorFactory

      public DefaultValidatorFactory(ValidatorConfiguration configuration)
      The constructor.
      Parameters:
      configuration - The configuration.
    • DefaultValidatorFactory

      @Inject public DefaultValidatorFactory(Validator validator, ValidatorConfiguration configuration)
      Default constructor.
      Parameters:
      validator - The validator.
      configuration - The configuration.
  • Method Details

    • getValidator

      public jakarta.validation.Validator getValidator()
      Specified by:
      getValidator in interface jakarta.validation.ValidatorFactory
    • usingContext

      public jakarta.validation.ValidatorContext usingContext()
      Specified by:
      usingContext in interface jakarta.validation.ValidatorFactory
    • getMessageInterpolator

      public jakarta.validation.MessageInterpolator getMessageInterpolator()
      Specified by:
      getMessageInterpolator in interface jakarta.validation.ValidatorFactory
    • getTraversableResolver

      public jakarta.validation.TraversableResolver getTraversableResolver()
      Specified by:
      getTraversableResolver in interface jakarta.validation.ValidatorFactory
    • getConstraintValidatorFactory

      public jakarta.validation.ConstraintValidatorFactory getConstraintValidatorFactory()
      Specified by:
      getConstraintValidatorFactory in interface jakarta.validation.ValidatorFactory
    • getParameterNameProvider

      public jakarta.validation.ParameterNameProvider getParameterNameProvider()
      Specified by:
      getParameterNameProvider in interface jakarta.validation.ValidatorFactory
    • getClockProvider

      public jakarta.validation.ClockProvider getClockProvider()
      Specified by:
      getClockProvider in interface jakarta.validation.ValidatorFactory
    • unwrap

      public <T> T unwrap(Class<T> type)
      Specified by:
      unwrap in interface jakarta.validation.ValidatorFactory
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface jakarta.validation.ValidatorFactory