summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/assembly
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-06-08 09:18:45 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-06-08 09:18:45 +0000
commit1495a66e88093d05af62ac85252b37ed2aee3a68 (patch)
treeb529c899be9db014537a7df97bd2ba6f3479dbab /java/sca/modules/assembly
parent88b7a7330cb0e48b7e8c8adbb6a26dbf41002b90 (diff)
TUSCANY-3081 - Add toString (and remove some commented out code) to aid debugging.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@782567 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/assembly')
-rw-r--r--java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReference2Impl.java39
1 files changed, 28 insertions, 11 deletions
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReference2Impl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReference2Impl.java
index 58b80d74ec..727ff8bf6a 100644
--- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReference2Impl.java
+++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReference2Impl.java
@@ -50,7 +50,6 @@ public class EndpointReference2Impl implements EndpointReference2 {
// the target of the endpoint reference
private Endpoint2 targetEndpoint;
-// private String uri;
// callback endpoint that messages across this reference
// will be directed toward
@@ -118,16 +117,6 @@ public class EndpointReference2Impl implements EndpointReference2 {
this.interfaceContract = interfaceContract;
}
- /*
- public String getURI() {
- return uri;
- }
-
- public void setURI(String uri) {
- this.uri = uri;
- }
- */
-
public List<PolicySet> getPolicySets() {
return policySets;
}
@@ -154,4 +143,32 @@ public class EndpointReference2Impl implements EndpointReference2 {
public void setCallbackEndpoint(Endpoint2 callbackEndpoint) {
this.callbackEndpoint = callbackEndpoint;
}
+
+ public String toString(){
+ String output = "Endpoint Reference: ";
+
+ if (component != null){
+ output += " Component = " + component.getName();
+ }
+
+ if (reference != null){
+ output += " Reference = " + reference.getName();
+ }
+
+ if (binding != null){
+ output += " Binding = " + binding.getName() + "/" + binding.getClass().getName() + " ";
+ }
+
+ if (unresolved) {
+ output += " Unresolved = true ";
+ } else {
+ output += " Unresolved = false ";
+ }
+
+ if (targetEndpoint != null) {
+ output += " Target " + targetEndpoint.toString();
+ }
+
+ return output;
+ }
}