Interface ConstraintValidator<A extends Annotation>
-
- Type Parameters:
A- theConstraintannotation this interface validates.
- All Known Implementing Classes:
RequiredValidator,ValidHostValidator,ValidPortValidator
public interface ConstraintValidator<A extends Annotation>Interface thatConstraintannotations must implement to perform validation logic.- Since:
- 2.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinitialize(A annotation)Called before this validator is used with the constraint annotation value.booleanisValid(String name, Object value)Indicates if the given value is valid.
-
-
-
Method Detail
-
initialize
void initialize(A annotation)
Called before this validator is used with the constraint annotation value.- Parameters:
annotation- the annotation value this validator will be validating.
-
-