public class AnnotationMessageProducer extends Object implements MessageProducer
| Constructor and Description |
|---|
AnnotationMessageProducer(Annotation constraint) |
| Modifier and Type | Method and Description |
|---|---|
ValidationMessage |
getMessage(InvalidValue invalidValue)
This method will always return the same ValidationMessage, as Hibernate
Validator only let one message per Validator, defined inside the
constraint annotation.
|
public AnnotationMessageProducer(Annotation constraint)
public ValidationMessage getMessage(InvalidValue invalidValue)
getMessage in interface MessageProducerinvalidValue - will be ignoredCopyright © 2013 Caelum. All Rights Reserved.