Package play.data.validation
Class DefaultConstraintValidatorFactory
- Object
-
- play.data.validation.DefaultConstraintValidatorFactory
-
- All Implemented Interfaces:
javax.validation.ConstraintValidatorFactory
public class DefaultConstraintValidatorFactory extends Object implements javax.validation.ConstraintValidatorFactory
Creates validator instances with injections available.
-
-
Constructor Summary
Constructors Constructor Description DefaultConstraintValidatorFactory(Injector injector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends javax.validation.ConstraintValidator<?,?>>
TgetInstance(Class<T> key)
void
releaseInstance(javax.validation.ConstraintValidator<?,?> instance)
-
-
-
Constructor Detail
-
DefaultConstraintValidatorFactory
@Inject public DefaultConstraintValidatorFactory(Injector injector)
-
-
Method Detail
-
getInstance
public <T extends javax.validation.ConstraintValidator<?,?>> T getInstance(Class<T> key)
- Specified by:
getInstance
in interfacejavax.validation.ConstraintValidatorFactory
-
releaseInstance
public void releaseInstance(javax.validation.ConstraintValidator<?,?> instance)
- Specified by:
releaseInstance
in interfacejavax.validation.ConstraintValidatorFactory
-
-