Package org.apache.bval.jsr
Class DefaultConstraintValidatorFactory
- java.lang.Object
-
- org.apache.bval.jsr.DefaultConstraintValidatorFactory
-
- All Implemented Interfaces:
jakarta.validation.ConstraintValidatorFactory
,Closeable
,AutoCloseable
public class DefaultConstraintValidatorFactory extends Object implements jakarta.validation.ConstraintValidatorFactory, Closeable
Description: create constraint instances with the default / no-arg constructor
-
-
Constructor Summary
Constructors Constructor Description DefaultConstraintValidatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
<T extends jakarta.validation.ConstraintValidator<?,?>>
TgetInstance(Class<T> constraintClass)
Instantiate a Constraint.void
releaseInstance(jakarta.validation.ConstraintValidator<?,?> instance)
-
-
-
Method Detail
-
getInstance
public <T extends jakarta.validation.ConstraintValidator<?,?>> T getInstance(Class<T> constraintClass)
Instantiate a Constraint.- Specified by:
getInstance
in interfacejakarta.validation.ConstraintValidatorFactory
- Returns:
- Returns a new Constraint instance The ConstraintFactory is not responsible for calling Constraint#initialize
-
releaseInstance
public void releaseInstance(jakarta.validation.ConstraintValidator<?,?> instance)
- Specified by:
releaseInstance
in interfacejakarta.validation.ConstraintValidatorFactory
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-