Package es.internna.framework.spring.mvc.validation

Examples of es.internna.framework.spring.mvc.validation.ValidatorHolder


        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);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of es.internna.framework.spring.mvc.validation.ValidatorHolder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.