/** * Engages the list of Modules to the specified AxisDescription. */ private void engageModulesToAxisDescription(List modulesToEngage, AxisDescription axisDescription) throws AxisFault { AxisModule axisModule; String moduleName; for (Iterator iterator = modulesToEngage.iterator(); iterator.hasNext();) { axisModule = (AxisModule) iterator.next(); moduleName = axisModule.getName(); if (!axisDescription.isEngaged(moduleName)) { axisDescription.engageModule(axisModule); (axisModule.getModule()).engageNotify(axisDescription); } } } }
/** * Engage a Module at this level * * @param axisModule the Module to engage * @throws AxisFault if there's a problem engaging */ public void engageModule(AxisModule axisModule) throws AxisFault { engageModule(axisModule, this); AxisConfiguration config = getAxisConfiguration(); config.notifyObservers(new AxisEvent(AxisEvent.MODULE_ENGAGED , this) , axisModule); }
/** * Engages the list of Modules to the specified AxisDescription. */ private void engageModulesToAxisDescription(List modulesToEngage, AxisDescription axisDescription) throws AxisFault { AxisModule axisModule; String moduleName; for (Iterator iterator = modulesToEngage.iterator(); iterator.hasNext();) { axisModule = (AxisModule) iterator.next(); moduleName = axisModule.getName(); if (!axisDescription.isEngaged(moduleName)) { axisDescription.engageModule(axisModule); (axisModule.getModule()).engageNotify(axisDescription); } } } }
/** * Engage a Module at this level * * @param axisModule the Module to engage * @throws AxisFault if there's a problem engaging */ public void engageModule(AxisModule axisModule) throws AxisFault { engageModule(axisModule, this); AxisConfiguration config = getAxisConfiguration(); config.notifyObservers(new AxisEvent(AxisEvent.MODULE_ENGAGED , this) , axisModule); }
private void engageModulesToAxisDescription(List<AxisModule> moduleList, AxisDescription description) throws AxisFault { AxisModule axisModule; Module module; for (Object aModuleList : moduleList) { axisModule = (AxisModule)aModuleList; // FIXME is this step really needed ?? // Shouldn't axisMoudle.getModule always return not-null value ?? module = axisModule.getModule(); if (!(module == null || description.isEngaged(axisModule.getName()))) { // engages the module to AxisDescription description.engageModule(axisModule); // notifies the module about the engagement axisModule.getModule().engageNotify(description); } } }
private void engageModulesToAxisDescription(List<AxisModule> moduleList, AxisDescription description) throws AxisFault { AxisModule axisModule; Module module; for (Object aModuleList : moduleList) { axisModule = (AxisModule)aModuleList; // FIXME is this step really needed ?? // Shouldn't axisMoudle.getModule always return not-null value ?? module = axisModule.getModule(); if (!(module == null || description.isEngaged(axisModule.getName()))) { // engages the module to AxisDescription description.engageModule(axisModule); // notifies the module about the engagement axisModule.getModule().engageNotify(description); } } }