log.info("AnnotationUrlHandlerMapping started configuring validators");
Map beans = context.getBeansOfType(ValidatorHolder.class);
if (beans != null) {
for (Object beanName : beans.keySet()) {
if (log.isDebugEnabled()) log.debug("Found validator holder " + beanName);
ValidatorHolder holder = (ValidatorHolder) beans.get(beanName);
Map validatorBeans = context.getBeansOfType(Validator.class);
for (Object validatorBeanName : validatorBeans.keySet()) {
if (log.isDebugEnabled()) log.debug("Found validator " + validatorBeanName);
holder.addValidator(validatorBeans.get(validatorBeanName));
if (log.isDebugEnabled()) log.debug("Adding validator " + validatorBeanName + " to " + beanName);
}
}
}
}