Class ConstraintValidators
java.lang.Object
org.apache.logging.log4j.core.config.plugins.validation.ConstraintValidators
Utility class to locate an appropriate
ConstraintValidator
implementation for an annotation.- Since:
- 2.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<ConstraintValidator<?>>
findValidators
(Annotation... annotations) Finds all relevantConstraintValidator
objects from an array of annotations.
-
Method Details
-
findValidators
Finds all relevantConstraintValidator
objects from an array of annotations. All validators will beinitialized
before being returned.- Parameters:
annotations
- the annotations to find constraint validators for- Returns:
- a collection of ConstraintValidators for the given annotations
-