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 Summary
ConstructorDescriptionDefaultConstraintValidatorFactory
(io.micronaut.context.BeanContext beanContext) Constructor. -
Method Summary
Modifier and TypeMethodDescription<T extends jakarta.validation.ConstraintValidator<?,
?>>
TgetInstance
(Class<T> key) void
releaseInstance
(jakarta.validation.ConstraintValidator<?, ?> instance)
-
Constructor Details
-
DefaultConstraintValidatorFactory
public DefaultConstraintValidatorFactory(io.micronaut.context.BeanContext beanContext) Constructor.- Parameters:
beanContext
- beanContext
-
-
Method Details
-
getInstance
- Specified by:
getInstance
in interfacejakarta.validation.ConstraintValidatorFactory
-
releaseInstance
public void releaseInstance(jakarta.validation.ConstraintValidator<?, ?> instance) - Specified by:
releaseInstance
in interfacejakarta.validation.ConstraintValidatorFactory
-