Author: lukaszlenart
Date: Tue Oct 22 08:02:45 2013
New Revision: 1534531

URL: http://svn.apache.org/r1534531
Log:
Add toString method for better debugging

Modified:
    
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ExceptionMappingConfig.java
    
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/InterceptorConfig.java
    
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/InterceptorMapping.java
    
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/InterceptorStackConfig.java
    
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/PackageConfig.java
    
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ResultConfig.java
    
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ResultTypeConfig.java
    
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/UnknownHandlerConfig.java

Modified: 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ExceptionMappingConfig.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ExceptionMappingConfig.java?rev=1534531&r1=1534530&r2=1534531&view=diff
==============================================================================
--- 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ExceptionMappingConfig.java
 (original)
+++ 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ExceptionMappingConfig.java
 Tue Oct 22 08:02:45 2013
@@ -112,6 +112,12 @@ public class ExceptionMappingConfig exte
         return hashCode;
     }
 
+    @Override
+    public String toString() {
+        return "ExceptionMappingConfig: [" + name + "] handle ["
+                + exceptionClassName + "] to result [" + result + "] with 
params " + params;
+    }
+
     /**
      * The builder for this object.  An instance of this object is the only 
way to construct a new instance.  The
      * purpose is to enforce the immutability of the object.  The methods are 
structured in a way to support chaining.

Modified: 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/InterceptorConfig.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/InterceptorConfig.java?rev=1534531&r1=1534530&r2=1534531&view=diff
==============================================================================
--- 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/InterceptorConfig.java
 (original)
+++ 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/InterceptorConfig.java
 Tue Oct 22 08:02:45 2013
@@ -98,6 +98,11 @@ public class InterceptorConfig extends L
         return result;
     }
 
+    @Override
+    public String toString() {
+        return "InterceptorConfig: [" + name + "] => [" + className + "] with 
params " + params;
+    }
+
     /**
      * The builder for this object.  An instance of this object is the only 
way to construct a new instance.  The
      * purpose is to enforce the immutability of the object.  The methods are 
structured in a way to support chaining.

Modified: 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/InterceptorMapping.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/InterceptorMapping.java?rev=1534531&r1=1534530&r2=1534531&view=diff
==============================================================================
--- 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/InterceptorMapping.java
 (original)
+++ 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/InterceptorMapping.java
 Tue Oct 22 08:02:45 2013
@@ -62,4 +62,10 @@ public class InterceptorMapping implemen
         result = (name != null ? name.hashCode() : 0);
         return result;
     }
+
+    @Override
+    public String toString() {
+        return "InterceptorMapping: [" + name + "] => [" + 
interceptor.getClass().getName() + ']';
+    }
+
 }

Modified: 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/InterceptorStackConfig.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/InterceptorStackConfig.java?rev=1534531&r1=1534530&r2=1534531&view=diff
==============================================================================
--- 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/InterceptorStackConfig.java
 (original)
+++ 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/InterceptorStackConfig.java
 Tue Oct 22 08:02:45 2013
@@ -123,6 +123,11 @@ public class InterceptorStackConfig exte
         return result;
     }
 
+    @Override
+    public String toString() {
+        return "InterceptorStackConfig: [" + name + "] contains " + 
interceptors;
+    }
+
     /**
      * The builder for this object.  An instance of this object is the only 
way to construct a new instance.  The
      * purpose is to enforce the immutability of the object.  The methods are 
structured in a way to support chaining.

Modified: 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/PackageConfig.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/PackageConfig.java?rev=1534531&r1=1534530&r2=1534531&view=diff
==============================================================================
--- 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/PackageConfig.java
 (original)
+++ 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/PackageConfig.java
 Tue Oct 22 08:02:45 2013
@@ -416,7 +416,7 @@ public class PackageConfig extends Locat
 
     @Override
     public String toString() {
-        return "{PackageConfig Name:" + name + " namespace:" + namespace + " 
parents:" + parents + "}";
+        return "PackageConfig: [" + name + "] for namespace [" + namespace + 
"] with parents [" + parents + "]";
     }
 
     public int compareTo(Object o) {

Modified: 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ResultConfig.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ResultConfig.java?rev=1534531&r1=1534530&r2=1534531&view=diff
==============================================================================
--- 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ResultConfig.java
 (original)
+++ 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ResultConfig.java
 Tue Oct 22 08:02:45 2013
@@ -98,6 +98,11 @@ public class ResultConfig extends Locate
         return result;
     }
 
+    @Override
+    public String toString() {
+        return "ResultConfig: [" + name + "] => [" + className + "] with 
params " + params;
+    }
+
     /**
      * The builder for this object.  An instance of this object is the only 
way to construct a new instance.  The
      * purpose is to enforce the immutability of the object.  The methods are 
structured in a way to support chaining.

Modified: 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ResultTypeConfig.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ResultTypeConfig.java?rev=1534531&r1=1534530&r2=1534531&view=diff
==============================================================================
--- 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ResultTypeConfig.java
 (original)
+++ 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ResultTypeConfig.java
 Tue Oct 22 08:02:45 2013
@@ -103,6 +103,12 @@ public class ResultTypeConfig extends Lo
         return result;
     }
 
+    @Override
+    public String toString() {
+        return "ResultTypeConfig: [" + name + "] => [" + className + "] " +
+                "with defaultParam [" + defaultResultParam + "] with params " 
+ params;
+    }
+
     /**
      * The builder for this object.  An instance of this object is the only 
way to construct a new instance.  The
      * purpose is to enforce the immutability of the object.  The methods are 
structured in a way to support chaining.

Modified: 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/UnknownHandlerConfig.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/UnknownHandlerConfig.java?rev=1534531&r1=1534530&r2=1534531&view=diff
==============================================================================
--- 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/UnknownHandlerConfig.java
 (original)
+++ 
struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/UnknownHandlerConfig.java
 Tue Oct 22 08:02:45 2013
@@ -16,6 +16,7 @@
 package com.opensymphony.xwork2.config.entities;
 
 public class UnknownHandlerConfig {
+
     private String name;
 
     public UnknownHandlerConfig(String name) {
@@ -29,4 +30,10 @@ public class UnknownHandlerConfig {
     public void setName(String name) {
         this.name = name;
     }
+
+    @Override
+    public String toString() {
+        return "UnknownHandlerConfig: [" + name + "]";
+    }
+
 }


Reply via email to