public interface ValidatorFactory
Validator
objects.Modifier and Type | Method and Description |
---|---|
Validator |
create(java.lang.annotation.Annotation annotation)
Creates a validator that the given constraint defines.
|
Validator |
create(java.lang.annotation.Annotation annotation,
Element element,
java.lang.Object target,
ValidationEngine engine)
Creates a validator based on the given constraint and context objects.
|
Validator create(java.lang.annotation.Annotation annotation)
annotation
- the constraintnull
if the annotation does not
define a validator.Validator create(java.lang.annotation.Annotation annotation, Element element, java.lang.Object target, ValidationEngine engine)
annotation
- the constraintelement
- the element being validatedtarget
- the target being validatedengine
- the engine to inject if the validator requires onenull
if the annotation does not
define a validator.