You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by az...@apache.org on 2011/01/06 15:35:13 UTC

svn commit: r1055894 - /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/context/MessageContext.java

Author: azeez
Date: Thu Jan  6 14:35:12 2011
New Revision: 1055894

URL: http://svn.apache.org/viewvc?rev=1055894&view=rev
Log:
Applying patch provided by Stefan Vladov AXIS2-4049 & other minor code improvements


Modified:
    axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/context/MessageContext.java

Modified: axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/context/MessageContext.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/context/MessageContext.java?rev=1055894&r1=1055893&r2=1055894&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/context/MessageContext.java (original)
+++ axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/context/MessageContext.java Thu Jan  6 14:35:12 2011
@@ -1668,32 +1668,38 @@ public class MessageContext extends Abst
         if (DEBUG_ENABLED) {
             checkActivateWarning("isEngaged");
         }
-        boolean enegage;
+        boolean isEngaged;
         if (configurationContext != null) {
             AxisConfiguration axisConfig = configurationContext.getAxisConfiguration();
             AxisModule module = axisConfig.getModule(moduleName);
             if (module == null) {
                 return false;
             }
-            enegage = axisConfig.isEngaged(module);
-            if (enegage) {
+            isEngaged = axisConfig.isEngaged(module);
+            if (isEngaged) {
                 return true;
             }
             if (axisServiceGroup != null) {
-                enegage = axisServiceGroup.isEngaged(module);
-                if (enegage) {
+                isEngaged = axisServiceGroup.isEngaged(module);
+                if (isEngaged) {
                     return true;
                 }
             }
             if (axisService != null) {
-                enegage = axisService.isEngaged(module);
-                if (enegage) {
+                isEngaged = axisService.isEngaged(module);
+                if (isEngaged) {
                     return true;
                 }
             }
             if (axisOperation != null) {
-                enegage = axisOperation.isEngaged(module);
-                if (enegage) {
+                isEngaged = axisOperation.isEngaged(module);
+                if (isEngaged) {
+                    return true;
+                }
+            }
+            if (axisMessage != null) {
+                isEngaged = axisMessage.isEngaged(module);
+                if (isEngaged) {
                     return true;
                 }
             }
@@ -2234,7 +2240,7 @@ public class MessageContext extends Abst
      * able to find matching objects when the message
      * context is re-constituted.
      *
-     * @param out The stream to write the object contents to
+     * @param o The stream to write the object contents to
      * @throws IOException
      */
     public void writeExternal(ObjectOutput o) throws IOException {
@@ -2824,7 +2830,7 @@ public class MessageContext extends Abst
      * as it was written.  Some data will need to be validated when
      * resurrected.
      *
-     * @param in The stream to read the object contents from
+     * @param inObject The stream to read the object contents from
      * @throws IOException
      * @throws ClassNotFoundException
      */