use of org.apache.openejb.jee.bval.ValidationConfigType in project tomee by apache.
the class ReadDescriptors method readValidationConfigType.
private void readValidationConfigType(final Module module) throws OpenEJBException {
if (module.getValidationConfig() != null) {
return;
}
final Source value = getSource(module.getAltDDs().get("validation.xml"));
if (value != null) {
try {
final ValidationConfigType validationConfigType = JaxbOpenejb.unmarshal(ValidationConfigType.class, value.get(), false);
module.setValidationConfig(validationConfigType);
} catch (final Exception e) {
logger.warning("can't read validation.xml to construct a validation factory, it will be ignored");
}
}
}
Aggregations