It would be nice to mention in documentation that validator method should return boolean, i.e.
@PropValidator(propertyName = "size")
boolean sizeValidator(String value) {
return "large".equals(value) || "small".equals(value);
}
Also declare propertyName as default, so it would be possible to use