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


Java AxisServiceGroup.getServiceGroupName方法代码示例

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


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

示例1: removeServiceGroupContext

import org.apache.axis2.description.AxisServiceGroup; //导入方法依赖的package包/类
/**
 * Removes the given ServiceGroup from the ServiceGroup context
 *
 * @param serviceGroup the AxisServiceGroup to remove
 */
public void removeServiceGroupContext(AxisServiceGroup serviceGroup) {
    if (serviceGroup == null) return;

    String groupName = serviceGroup.getServiceGroupName();
    Object obj = applicationSessionServiceGroupContexts.get(groupName);
    if (obj != null) {
        applicationSessionServiceGroupContexts.remove(serviceGroup.getServiceGroupName());
        return;
    }

    ArrayList<String> toBeRemovedList = new ArrayList<String>();
    Iterator<ServiceGroupContext> serviceGroupContexts = serviceGroupContextMap.values().iterator();
    while (serviceGroupContexts.hasNext()) {
        ServiceGroupContext serviceGroupContext =serviceGroupContexts.next();
        if (serviceGroupContext.getDescription().equals(serviceGroup)) {
            toBeRemovedList.add(serviceGroupContext.getId());
        }
    }
    for (Object aToBeRemovedList : toBeRemovedList) {
        String s = (String)aToBeRemovedList;
        serviceGroupContextMap.remove(s);
    }
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:29,代码来源:ConfigurationContext.java

示例2: FaultyServiceData

import org.apache.axis2.description.AxisServiceGroup; //导入方法依赖的package包/类
public FaultyServiceData(AxisServiceGroup serviceGroup,
                         ArrayList serviceList,
                         URL serviceLocation,
                         DeploymentFileData currentDeploymentFile) {
    serviceGroupName = serviceGroup.getServiceGroupName();
    this.serviceGroup = serviceGroup;
    this.serviceList = serviceList;
    this.currentDeploymentFile = currentDeploymentFile;
    this.serviceLocation = serviceLocation;

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

示例3: getServiceGroupMapKey

import org.apache.axis2.description.AxisServiceGroup; //导入方法依赖的package包/类
private static String getServiceGroupMapKey(AxisServiceGroup serviceGroup) {
    return serviceGroup.getServiceGroupName() + "$#sg";
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:4,代码来源:ClassLoaderUtil.java

示例4: findServiceGroup

import org.apache.axis2.description.AxisServiceGroup; //导入方法依赖的package包/类
/**
 * Find the AxisServiceGroup object that matches the criteria
 * <p/>
 * <B>Note<B> the saved service group meta information may not
 * match up with any of the serviceGroups that
 * are in the current AxisConfiguration object.
 * 
 * @param axisConfig The AxisConfiguration object
 * @param serviceGrpClassName the class name string for the target object
 *                   (could be a derived class)
 * @param serviceGrpName      the name associated with the service group
 * @return the AxisServiceGroup object that matches the criteria
 */
public static AxisServiceGroup findServiceGroup(AxisConfiguration axisConfig,
                                                String serviceGrpClassName,
                                                String serviceGrpName) {
    Iterator its = axisConfig.getServiceGroups();

    while (its.hasNext()) {
        AxisServiceGroup checkServiceGroup = (AxisServiceGroup) its.next();

        String tmpSGClassName = checkServiceGroup.getClass().getName();
        String tmpSGName = checkServiceGroup.getServiceGroupName();

        if (tmpSGClassName.equals(serviceGrpClassName)) {
            boolean found = false;

            // the serviceGroupName can be null, so either both the 
            // service group names are null or they match
            if ((tmpSGName == null) && (serviceGrpName == null)) {
                found = true;
            } else if ((tmpSGName != null) && (tmpSGName.equals(serviceGrpName))) {
                found = true;
            } else if (containsExternalizedAxisServiceName(checkServiceGroup, serviceGrpName)) {
                found = true;
            }

            if (found) {
                // trace point
                if (log.isTraceEnabled()) {
                    log.trace("ObjectStateUtils:findServiceGroup(): returning  ["
                            + serviceGrpClassName + "]   [" + serviceGrpName + "]");
                }

                return checkServiceGroup;
            }
        }
    }

    // trace point
    if (log.isTraceEnabled()) {
        log.trace("ObjectStateUtils:findServiceGroup(): [" + serviceGrpClassName + "]   ["
                + serviceGrpName + "]  returning  [null]");
    }

    return null;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:58,代码来源:ActivateUtils.java


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