Examples of BootstrapConfigurationImpl


Examples of org.apache.bval.jsr.BootstrapConfigurationImpl

                parser.xmlConfig.setExecutableValidation(value);
            }

            applySimpleConfig(parser.xmlConfig, targetConfig);

            parser.bootstrap = new BootstrapConfigurationImpl(
                    parser.xmlConfig.getDefaultProvider(),
                    parser.xmlConfig.getConstraintValidatorFactory(),
                    parser.xmlConfig.getMessageInterpolator(),
                    parser.xmlConfig.getTraversableResolver(),
                    parser.xmlConfig.getParameterNameProvider(),
                    new CopyOnWriteArraySet<String>(parser.xmlConfig.getConstraintMapping()),
                    parser.xmlConfig.getExecutableValidation().getEnabled(),
                    new CopyOnWriteArraySet<ExecutableType>(targetConfig.getExecutableValidation()),
                    toMap(parser.xmlConfig.getProperty()));
            return parser;
        } else { // default config
            final CopyOnWriteArraySet<ExecutableType> executableTypes = new CopyOnWriteArraySet<ExecutableType>();
            executableTypes.add(ExecutableType.CONSTRUCTORS);
            executableTypes.add(ExecutableType.NON_GETTER_METHODS);

            parser.bootstrap = new BootstrapConfigurationImpl(
                    null, null, null, null, null,
                    new CopyOnWriteArraySet<String>(),
                    true,
                    executableTypes,
                    new HashMap<String, String>());
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.