tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r801585 - /tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java
Date Thu, 06 Aug 2009 09:55:15 GMT
Author: slaws
Date: Thu Aug  6 09:55:15 2009
New Revision: 801585

URL: http://svn.apache.org/viewvc?rev=801585&view=rev
Log:
Provide mechanism of printing out the endpoint reference without the hash code to make test
comparison easy

Modified:
    tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java

Modified: tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java?rev=801585&r1=801584&r2=801585&view=diff
==============================================================================
--- tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java
(original)
+++ tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java
Thu Aug  6 09:55:15 2009
@@ -163,9 +163,9 @@
         this.callbackEndpoint = callbackEndpoint;
         reset();
     }
-
-    public String toString() {
-        String output = "EndpointReference(@" + this.hashCode() + "): ";
+    
+    public String toStringWithoutHash() {
+        String output = "EndpointReference: ";
 
         if (getURI() != null) {
             output += " URI = " + getURI();
@@ -196,6 +196,10 @@
         return output;
     }
 
+    public String toString() {
+        return "(@" + this.hashCode() + ")" + toStringWithoutHash();
+    }
+
     public String getURI() {
         if (uri == null) {
             if (component != null && reference != null && binding != null)
{



Mime
View raw message