Author: veithen
Date: Thu Nov  1 09:15:42 2012
New Revision: 1404511

URL: http://svn.apache.org/viewvc?rev=1404511&view=rev
Log:
Cut the dependency between soapmonitor-applet and axis-rt-core. The SOAP 
Monitor applet must be completely self-contained. (Note that previously this 
was working only because javac inlines constants that have a primitive type, 
i.e. axis-rt-core was actually only a build time dependency).

Modified:
    axis/axis1/java/trunk/soapmonitor-applet/pom.xml
    
axis/axis1/java/trunk/soapmonitor-applet/src/main/java/SOAPMonitorApplet.java

Modified: axis/axis1/java/trunk/soapmonitor-applet/pom.xml
URL: 
http://svn.apache.org/viewvc/axis/axis1/java/trunk/soapmonitor-applet/pom.xml?rev=1404511&r1=1404510&r2=1404511&view=diff
==============================================================================
--- axis/axis1/java/trunk/soapmonitor-applet/pom.xml (original)
+++ axis/axis1/java/trunk/soapmonitor-applet/pom.xml Thu Nov  1 09:15:42 2012
@@ -27,11 +27,4 @@
     </parent>
     <artifactId>soapmonitor-applet</artifactId>
     <name>SOAP Monitor Applet</name>
-    <dependencies>
-        <dependency>
-            <groupId>${project.groupId}</groupId>
-            <artifactId>axis-rt-core</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-    </dependencies>
 </project>

Modified: 
axis/axis1/java/trunk/soapmonitor-applet/src/main/java/SOAPMonitorApplet.java
URL: 
http://svn.apache.org/viewvc/axis/axis1/java/trunk/soapmonitor-applet/src/main/java/SOAPMonitorApplet.java?rev=1404511&r1=1404510&r2=1404511&view=diff
==============================================================================
--- 
axis/axis1/java/trunk/soapmonitor-applet/src/main/java/SOAPMonitorApplet.java 
(original)
+++ 
axis/axis1/java/trunk/soapmonitor-applet/src/main/java/SOAPMonitorApplet.java 
Thu Nov  1 09:15:42 2012
@@ -25,8 +25,6 @@ import javax.swing.border.*;
 import javax.swing.event.*;
 import javax.swing.table.*;
 
-import org.apache.axis.monitor.SOAPMonitorConstants;
-
 /**
  * This is a SOAP Mointor Applet class.  This class provides
  * the user interface for displaying data from the SOAP
@@ -36,6 +34,8 @@ import org.apache.axis.monitor.SOAPMonit
  *
  */
 public class SOAPMonitorApplet extends JApplet {
+    private static final int SOAP_MONITOR_REQUEST  = 0;
+    private static final int SOAP_MONITOR_RESPONSE = 1;
 
     /**
      * Private data
@@ -435,7 +435,7 @@ public class SOAPMonitorApplet extends J
                     message_type = (Integer) in.readObject();
                     // Process the data depending on its type
                     switch (message_type.intValue()) {
-                        case SOAPMonitorConstants.SOAP_MONITOR_REQUEST:
+                        case SOAP_MONITOR_REQUEST:
                             // Get the id, target and soap info
                             id = (Long) in.readObject();
                             target = (String) in.readObject();
@@ -450,7 +450,7 @@ public class SOAPMonitorApplet extends J
                                 valueChanged(null);
                             }
                             break;
-                        case SOAPMonitorConstants.SOAP_MONITOR_RESPONSE:
+                        case SOAP_MONITOR_RESPONSE:
                             // Get the id and soap info
                             id = (Long) in.readObject();
                             soap = (String) in.readObject();


Reply via email to