if (handler == null) {
logger.error("Could not handle element '" + ruleDefinition.getTagName() +
"'. Please make sure the proper validation rule definition handler is registered");
throw new ValidationConfigurationException("Could not handle element '" + ruleDefinition.getTagName() + "'");
}
handler.handle(ruleDefinition, propertyName, configuration);
}
}
protected PropertyValidationRule createPropertyRule(String propertyName, ValidationRule rule) {
return new PropertyValidationRule(propertyName, rule);