Examples of ValidatorFactory


Examples of org.springmodules.validation.commons.ValidatorFactory

            pageContext.getRequest().getAttribute(DispatcherServlet.WEB_APPLICATION_CONTEXT_ATTRIBUTE);
        if (ctx == null) {
            // look in main application context (i.e. applicationContext.xml)
            ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(pageContext.getServletContext());
        }
        ValidatorFactory factory = (ValidatorFactory)
            BeanFactoryUtils.beanOfTypeIncludingAncestors(ctx, ValidatorFactory.class, true, true);
        return factory.getValidatorResources();
    }
View Full Code Here

Examples of org.strecks.validator.factory.ValidatorFactory

        foundValidator = true;

        Class validatorFactoryClass = factory.value();

        ValidatorFactory v = ReflectHelper.createInstance(validatorFactoryClass, ValidatorFactory.class);

        Method getter = getGetter(method);
        ValidatorWrapper wrapper = v.create(annotation, getter);
        Validator validator = wrapper.getValidator();

        // if we using the raw type, we can check that the generic type matches the
        if (!wrapper.getUsesConvertedValue())
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.