本文整理汇总了Java中org.apache.axis2.description.AxisModule.getFaultOutFlow方法的典型用法代码示例。如果您正苦于以下问题:Java AxisModule.getFaultOutFlow方法的具体用法?Java AxisModule.getFaultOutFlow怎么用?Java AxisModule.getFaultOutFlow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.axis2.description.AxisModule
的用法示例。
在下文中一共展示了AxisModule.getFaultOutFlow方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: engageModuleToOperation
import org.apache.axis2.description.AxisModule; //导入方法依赖的package包/类
private void engageModuleToOperation(AxisOperation axisOperation,
AxisModule axisModule,
int flowType) throws PhaseException {
List phases = new ArrayList();
Flow flow = null;
switch (flowType) {
case PhaseMetadata.IN_FLOW : {
phases.addAll(axisConfig.getInFlowPhases());
phases.addAll(axisOperation.getRemainingPhasesInFlow());
flow = axisModule.getInFlow();
break;
}
case PhaseMetadata.OUT_FLOW : {
phases.addAll(axisOperation.getPhasesOutFlow());
phases.addAll(axisConfig.getOutFlowPhases());
flow = axisModule.getOutFlow();
break;
}
case PhaseMetadata.FAULT_OUT_FLOW : {
phases.addAll(axisOperation.getPhasesOutFaultFlow());
phases.addAll(axisConfig.getOutFaultFlowPhases());
flow = axisModule.getFaultOutFlow();
break;
}
case PhaseMetadata.FAULT_IN_FLOW : {
phases.addAll(axisOperation.getPhasesInFaultFlow());
phases.addAll(axisConfig.getInFaultFlowPhases());
flow = axisModule.getFaultInFlow();
break;
}
}
engageModuleToFlow(flow, phases);
}
示例2: addNewModule
import org.apache.axis2.description.AxisModule; //导入方法依赖的package包/类
public static void addNewModule(AxisModule modulemetadata,
AxisConfiguration axisConfiguration) throws AxisFault {
Flow inflow = modulemetadata.getInFlow();
ClassLoader moduleClassLoader = modulemetadata.getModuleClassLoader();
if (inflow != null) {
Utils.addFlowHandlers(inflow, moduleClassLoader);
}
Flow outFlow = modulemetadata.getOutFlow();
if (outFlow != null) {
Utils.addFlowHandlers(outFlow, moduleClassLoader);
}
Flow faultInFlow = modulemetadata.getFaultInFlow();
if (faultInFlow != null) {
Utils.addFlowHandlers(faultInFlow, moduleClassLoader);
}
Flow faultOutFlow = modulemetadata.getFaultOutFlow();
if (faultOutFlow != null) {
Utils.addFlowHandlers(faultOutFlow, moduleClassLoader);
}
axisConfiguration.addModule(modulemetadata);
log.debug(Messages.getMessage(DeploymentErrorMsgs.ADDING_NEW_MODULE));
synchronized (axisConfiguration.getFaultyServicesDuetoModules()) {
//Check whether there are faulty services due to this module
HashMap<String, FaultyServiceData> faultyServices =
(HashMap<String, FaultyServiceData>) axisConfiguration.getFaultyServicesDuetoModule(
modulemetadata.getName());
faultyServices = (HashMap<String, FaultyServiceData>) faultyServices.clone();
// Here iterating a cloned hashmap and modifying the original hashmap.
// To avoid the ConcurrentModificationException.
for (FaultyServiceData faultyServiceData : faultyServices.values()) {
axisConfiguration.removeFaultyServiceDuetoModule(modulemetadata.getName(),
faultyServiceData
.getServiceGroup().getServiceGroupName());
//Recover the faulty serviceGroup.
addServiceGroup(faultyServiceData.getServiceGroup(),
faultyServiceData.getServiceList(),
faultyServiceData.getServiceLocation(),
faultyServiceData.getCurrentDeploymentFile(),
axisConfiguration);
}
}
}