axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r650089 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/Phase.java
Date Mon, 21 Apr 2008 10:38:05 GMT
Author: deepal
Date: Mon Apr 21 03:37:58 2008
New Revision: 650089

URL: http://svn.apache.org/viewvc?rev=650089&view=rev
Log:
fix for SYNAPSE-271

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/Phase.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/Phase.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/Phase.java?rev=650089&r1=650088&r2=650089&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/Phase.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/engine/Phase.java Mon
Apr 21 03:37:58 2008
@@ -251,8 +251,30 @@
 
         if (beforeIndex > -1) {
             handlers.add(beforeIndex, handler);
-        } else {
-            handlers.add(handler);
+        } else if (afterIndex > -1){
+            if (phaseLastSet){
+                if (handlers.size() ==1){
+                    handlers.add(0,handler);
+                }  else {
+                    handlers.add(handlers.size() -2,handler);
+                }
+            }  else {
+                if (afterIndex == (handlers.size() -1)) {
+                    handlers.add(handler);
+                } else {
+                    handlers.add(afterIndex +1,handler);
+                }
+            }
+        }  else {
+            if (phaseLastSet) {
+                if (handlers.size() ==1){
+                    handlers.add(0,handler);
+                }  else {
+                    handlers.add(handlers.size() -2,handler);
+                }
+            }    else {
+                handlers.add(handler);
+            }
         }
     }
 



---------------------------------------------------------------------
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