* Method to be called by the CommonsValidatorEvent class. signature will be
* modified.
*/
public static void validate(String beanName, Object o, Errors errors) {
try {
Validator validator = new Validator(validatorResources, beanName);
// add the name bean to the validator as a resource
// for the validations to be performed on.
validator.setParameter(Validator.BEAN_PARAM, o);
validator.setParameter(Globals.ERRORS_KEY, errors);
validator.validate();
} catch (ValidatorException e) {
LOGGER.info("Error validating HttpEvent " + beanName + " : " + e); //$NON-NLS-1$ //$NON-NLS-2$
} catch (IllegalArgumentException e) {
LOGGER.warn("Error validating: " + e.getMessage()); //$NON-NLS-1$
}