Class DefaultConstraintValidatorFactory

java.lang.Object
io.micronaut.configuration.hibernate.validator.DefaultConstraintValidatorFactory
All Implemented Interfaces:
jakarta.validation.ConstraintValidatorFactory

@Primary @Singleton public class DefaultConstraintValidatorFactory extends Object implements jakarta.validation.ConstraintValidatorFactory
Default implementation of the ConstraintValidatorFactory interface that retrieves validators from the bean context.
Since:
1.1.0
Author:
James Kleeh
  • Constructor Details

    • DefaultConstraintValidatorFactory

      public DefaultConstraintValidatorFactory(io.micronaut.context.BeanContext beanContext)
      Constructor.
      Parameters:
      beanContext - beanContext
  • Method Details

    • getInstance

      public <T extends jakarta.validation.ConstraintValidator<?, ?>> T getInstance(Class<T> key)
      Specified by:
      getInstance in interface jakarta.validation.ConstraintValidatorFactory
    • releaseInstance

      public void releaseInstance(jakarta.validation.ConstraintValidator<?,?> instance)
      Specified by:
      releaseInstance in interface jakarta.validation.ConstraintValidatorFactory