valConfig = cfg;
try {
this.actionFact = cfg.getActionFact().newInstance();
} catch ( IllegalAccessException e) {
throw new ValidationException("Unable to instatiate action factory : " + e.getMessage(), e);
} catch ( InstantiationException e) {
throw new ValidationException("Unable to instatiate action factory : " + e.getMessage(), e);
}
try {
this.annotFact = cfg.getAnnotFact().newInstance();
this.annotFact.setActionFact(this.actionFact);
} catch ( IllegalAccessException e) {
throw new ValidationException("Unable to instatiate annotation factory : " + e.getMessage(), e);
} catch ( InstantiationException e) {
throw new ValidationException("Unable to instatiate annotation factory : " + e.getMessage(), e);
}
}