@Singleton public class DefaultConstraintValidatorFactory extends Object implements ConstraintValidatorFactory
ConstraintValidatorFactory
interface that
retrieves validators from the bean context.Constructor and Description |
---|
DefaultConstraintValidatorFactory(BeanContext beanContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T extends ConstraintValidator<?,?>> |
getInstance(Class<T> key) |
void |
releaseInstance(ConstraintValidator<?,?> instance) |
public DefaultConstraintValidatorFactory(BeanContext beanContext)
beanContext
- beanContextpublic <T extends ConstraintValidator<?,?>> T getInstance(Class<T> key)
getInstance
in interface ConstraintValidatorFactory
public void releaseInstance(ConstraintValidator<?,?> instance)
releaseInstance
in interface ConstraintValidatorFactory