Package org.glassfish.web.config.serverbeans

Examples of org.glassfish.web.config.serverbeans.ContextParam


        WebModuleConfig config = WebModuleConfig.Duck.webModuleConfig(owningEngine);
        if (config == null) {
            createContextParamOnNewWMC(owningEngine, paramName, paramValue,
                    description, ignoreDescriptorItem);
        } else {
            ContextParam cp = config.getContextParam(paramName);
            if (cp == null) {
                createContextParamOnExistingWMC(config, paramName,
                        paramValue, description, ignoreDescriptorItem);
            } else {
                modifyContextParam(cp, paramValue, description,
View Full Code Here


            @Override
            public Object run(Engine e) throws PropertyVetoException, TransactionFailure {
                final WebModuleConfig config = e.createChild(WebModuleConfig.class);
                e.getApplicationConfigs().add(config);
                final ContextParam newParam = config.createChild(ContextParam.class);
                config.getContextParam().add(newParam);
                set(newParam, paramName, paramValue, description, ignoreDescriptorItem);
                return config;
            }
        }, owningEngine);
View Full Code Here

        ConfigSupport.apply(new SingleConfigCode<WebModuleConfig>() {

            @Override
            public Object run(WebModuleConfig cf) throws PropertyVetoException, TransactionFailure {
                final ContextParam param = cf.createChild(ContextParam.class);
                cf.getContextParam().add(param);
                set(param, paramName, paramValue, description, ignoreDescriptorItem);
                return param;
            }
        }, config);
View Full Code Here

TOP

Related Classes of org.glassfish.web.config.serverbeans.ContextParam

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.