当前位置: 首页>>代码示例>>Java>>正文


Java AxisModule.getParameter方法代码示例

本文整理汇总了Java中org.apache.axis2.description.AxisModule.getParameter方法的典型用法代码示例。如果您正苦于以下问题:Java AxisModule.getParameter方法的具体用法?Java AxisModule.getParameter怎么用?Java AxisModule.getParameter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.axis2.description.AxisModule的用法示例。


在下文中一共展示了AxisModule.getParameter方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addModule

import org.apache.axis2.description.AxisModule; //导入方法依赖的package包/类
/**
 * Add an available Module to this configuration
 *
 * @param module an AxisModule
 * @throws AxisFault in case of error
 */
public void addModule(AxisModule module) throws AxisFault {
    module.setParent(this);

    // check whether the module version paramter is there , if so set the module version as that
    Parameter versionParameter = module.getParameter(org.apache.axis2.Constants.MODULE_VERSION);
    if (versionParameter !=null ) {
        String version = (String) versionParameter.getValue();
        try {
            module.setVersion(new Version(version));
        } catch (ParseException ex) {
            throw new AxisFault("The version number '" + version + "' specified by the "
                    + org.apache.axis2.Constants.MODULE_VERSION + " parameter is invalid");
        }
    }

    allModules.put(module.getArchiveName(), module);
    notifyObservers(new AxisEvent(AxisEvent.MODULE_DEPLOY,null), module);

    // Registering the policy namespaces that the module understand
    registerModulePolicySupport(module);
    // Registering the policy assertions that are local to the system
    registerLocalPolicyAssertions(module);

}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:31,代码来源:AxisConfiguration.java

示例2: isCachingGloballyEnabled

import org.apache.axis2.description.AxisModule; //导入方法依赖的package包/类
public boolean isCachingGloballyEnabled() throws CachingComponentException {
    AxisModule module = axisConfig.getModule(CachingComponentConstants.CACHING_MODULE);
    Parameter param = module.getParameter(GLOBALLY_ENGAGED_PARAM_NAME);
    if (param != null) {
        String globallyEngaged = (String) param.getValue();
        if (globallyEngaged != null && globallyEngaged.length() != 0) {
            return Boolean.parseBoolean(globallyEngaged.trim());
        }
    }
    return false;
}
 
开发者ID:wso2-attic,项目名称:carbon-qos,代码行数:12,代码来源:CachingConfigAdminService.java


注:本文中的org.apache.axis2.description.AxisModule.getParameter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。