axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From az...@apache.org
Subject svn commit: r424191 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisServiceGroup.java
Date Fri, 21 Jul 2006 05:43:03 GMT
Author: azeez
Date: Thu Jul 20 22:43:03 2006
New Revision: 424191

URL: http://svn.apache.org/viewvc?rev=424191&view=rev
Log:
Added disengage module method


Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisServiceGroup.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisServiceGroup.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisServiceGroup.java?rev=424191&r1=424190&r2=424191&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisServiceGroup.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/AxisServiceGroup.java
Thu Jul 20 22:43:03 2006
@@ -128,13 +128,19 @@
                 return;
             }
         }
-        Iterator srevice = getServices();
-        while (srevice.hasNext()) {
-            // engaging each service
-            AxisService axisService = (AxisService) srevice.next();
+        for (Iterator serviceIter = getServices(); serviceIter.hasNext();) {
+            AxisService axisService = (AxisService) serviceIter.next();
             axisService.engageModule(module, axisConfig);
         }
         addToengagedModules(moduleName);
+    }
+
+    public void disengageModule(AxisModule module) throws AxisFault {
+        for (Iterator serviceIter = getServices(); serviceIter.hasNext();) {
+            AxisService axisService = (AxisService) serviceIter.next();
+            axisService.disEngageModule(module);
+        }
+        removeFromEngageList(module.getName());
     }
 
     public void removeService(String name) throws AxisFault {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message