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/EndpointImpl.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/EndpointImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java index 71b73e37fd..1c54a55b8d 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java @@ -141,9 +141,9 @@ public class EndpointImpl implements Endpoint { public void setExtensionType(ExtensionType type) { throw new UnsupportedOperationException(); } - - public String toString() { - String output = "Endpoint(@" + this.hashCode() + "): "; + + public String toStringWithoutHash() { + String output = "Endpoint: "; if (getURI() != null) { output += " URI = " + getURI(); @@ -156,6 +156,10 @@ public class EndpointImpl implements Endpoint { return output; } + public String toString() { + return "(@" + this.hashCode() + ")" + toStringWithoutHash(); + } + public String getURI() { if (uri == null) { if (component != null && service != null && binding != null) { |