public interface ConstraintValidator<A extends Annotation,T>
void initialize(A constraintAnnotation)
constraintAnnotation- annotation instance for a given constraint declaration
boolean isValid(T value, ConstraintValidatorContext context)
valuemust not be altered. This method can be accessed concurrently, thread-safety must be ensured by the implementation.
value- object to validate
context- context in which the constraint is evaluated
valuedoes not pass the constraint
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.