public class ConstraintCached extends Object
| Constructor and Description |
|---|
ConstraintCached() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsConstraintValidator(Class<? extends Annotation> annotationClass)
Learn whether we have cached the validator classes for the requested constraint annotation.
|
<A extends Annotation> |
getConstraintValidators(Class<A> annotationClass)
Get the cached validator classes for the requested constraint annotation.
|
<A extends Annotation> |
putConstraintValidator(Class<A> annotationClass,
Class<? extends ConstraintValidator<A,?>>[] definitionClasses)
Record the set of validator classes for a given constraint annotation.
|
public <A extends Annotation> void putConstraintValidator(Class<A> annotationClass, Class<? extends ConstraintValidator<A,?>>[] definitionClasses)
annotationClass - definitionClasses - public boolean containsConstraintValidator(Class<? extends Annotation> annotationClass)
annotationClass - to look uppublic <A extends Annotation> Class<? extends ConstraintValidator<A,?>>[] getConstraintValidators(Class<A> annotationClass)
annotationClass - to look upConstraintValidator implementation typesCopyright © 2010–2024 The Apache Software Foundation. All rights reserved.