diff options
Diffstat (limited to 'java/sca/modules/assembly')
-rw-r--r-- | java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java index 71f0a8f10a..4c02be42dd 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java @@ -163,9 +163,9 @@ public class EndpointReferenceImpl implements EndpointReference { 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 @@ public class EndpointReferenceImpl implements EndpointReference { return output; } + public String toString() { + return "(@" + this.hashCode() + ")" + toStringWithoutHash(); + } + public String getURI() { if (uri == null) { if (component != null && reference != null && binding != null) { |