//This method calls the init method of the handlers that we want to initialize.
//Currently only the handlers in the OutFlow and FaultOutFlow are initialized
//by this code. If handlers in other flows need to be initialized then code will
//need to be added to do so.
private void initHandlers(AxisModule axisModule) {
Flow flow = axisModule.getOutFlow();
if (log.isTraceEnabled()) {
log.trace("initHandlers: Initializing handlers in out flow.");
}
for (int i = 0, size = flow.getHandlerCount(); i < size; i++) {
HandlerDescription description = flow.getHandler(i);
Handler handler = description.getHandler();
handler.init(description);
}
flow = axisModule.getFaultOutFlow();
if (log.isTraceEnabled()) {
log.trace("initHandlers: Initializing handlers in fault out flow.");
}
for (int i = 0, size = flow.getHandlerCount(); i < size; i++) {
HandlerDescription description = flow.getHandler(i);
Handler handler = description.getHandler();
handler.init(description);
}
}