public class ConstraintValidatorManager extends Object
ConstraintValidator
instances.Constructor and Description |
---|
ConstraintValidatorManager(ConstraintValidatorFactory constraintValidatorFactory)
Creates a new
ConstraintValidatorManager . |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
ConstraintValidatorFactory |
getDefaultConstraintValidatorFactory() |
<V,A extends Annotation> |
getInitializedValidator(Type validatedValueType,
ConstraintDescriptorImpl<A> descriptor,
ConstraintValidatorFactory constraintFactory) |
int |
numberOfCachedConstraintValidatorInstances() |
public ConstraintValidatorManager(ConstraintValidatorFactory constraintValidatorFactory)
ConstraintValidatorManager
.constraintValidatorFactory
- the validator factorypublic <V,A extends Annotation> ConstraintValidator<A,V> getInitializedValidator(Type validatedValueType, ConstraintDescriptorImpl<A> descriptor, ConstraintValidatorFactory constraintFactory)
V
- the type of the value to be validatedA
- the annotation typevalidatedValueType
- the type of the value to be validated. Cannot be null
.descriptor
- the constraint descriptor for which to get an initialized constraint validator. Cannot be null
constraintFactory
- constraint factory used to instantiate the constraint validator. Cannot be null
.null
is returned if no matching constraint validator could be found.public void clear()
public ConstraintValidatorFactory getDefaultConstraintValidatorFactory()
public int numberOfCachedConstraintValidatorInstances()
Copyright © 2017 JBoss by Red Hat. All rights reserved.