tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r799345 - in /tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl: EndpointImpl.java EndpointReferenceImpl.java
Date Thu, 30 Jul 2009 16:02:23 GMT
Author: slaws
Date: Thu Jul 30 16:02:22 2009
New Revision: 799345

URL: http://svn.apache.org/viewvc?rev=799345&view=rev
Log:
Print out the hash code so that you can distinguish between endpoints and endpoint references
with the same uri information in the promotion case

Modified:
    tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java
    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/EndpointImpl.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java?rev=799345&r1=799344&r2=799345&view=diff
==============================================================================
--- tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java
(original)
+++ tuscany/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java
Thu Jul 30 16:02:22 2009
@@ -143,8 +143,8 @@
     }
 
     public String toString() {
-        String output = "Endpoint: ";
-
+        String output = "Endpoint(@" + this.hashCode() + "): ";
+        
         if (getURI() != null) {
             output += " URI = " + getURI();
         }

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=799345&r1=799344&r2=799345&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 Jul 30 16:02:22 2009
@@ -165,7 +165,7 @@
     }
 
     public String toString() {
-        String output = "Endpoint Reference: ";
+        String output = "EndpointReference(@" + this.hashCode() + "): ";
 
         if (getURI() != null) {
             output += " URI = " + getURI();



Mime
View raw message