}
}
private void enageToGlobalChain(ModuleDescription module) throws PhaseException {
Flow flow = null;
for (int type = 1; type < 5; type++) {
switch (type) {
case PhaseMetadata.IN_FLOW:
{
phaseHolder =
new PhaseHolder(axisConfig.
getInPhasesUptoAndIncludingPostDispatch());
break;
}
case PhaseMetadata.OUT_FLOW:
{
phaseHolder =
new PhaseHolder(((AxisConfigurationImpl) axisConfig).getOutFlow());
break;
}
case PhaseMetadata.FAULT_IN_FLOW:
{
phaseHolder =
new PhaseHolder(axisConfig.getInFaultFlow());
break;
}
case PhaseMetadata.FAULT_OUT_FLOW:
{
phaseHolder =
new PhaseHolder(((AxisConfigurationImpl) axisConfig).getOutFaultFlow());
break;
}
}
////////////////////////////////////////////////////////////////////////////////////
/////////////////// Modules refered by axis2.xml //////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
switch (type) {
case PhaseMetadata.IN_FLOW:
{
flow = module.getInFlow();
break;
}
case PhaseMetadata.OUT_FLOW:
{
flow = module.getOutFlow();
break;
}
case PhaseMetadata.FAULT_IN_FLOW:
{
flow = module.getFaultInFlow();
break;
}
case PhaseMetadata.FAULT_OUT_FLOW:
{
flow = module.getFaultOutFlow();
break;
}
}
if (flow != null) {
for (int j = 0; j < flow.getHandlerCount(); j++) {
HandlerDescription metadata = flow.getHandler(j);
if (PhaseValidator.isSystemPhases(metadata.getRules().getPhaseName())) {
phaseHolder.addHandler(metadata);
} else {
/**
* These handlers will go to operation's handler chains , since the module