summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2008-07-01 02:58:15 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2008-07-01 02:58:15 +0000
commita3c2a9e3199f458f6b6ebc0b9a91f9bb8b638441 (patch)
tree62bc830ce7a35bac2dc1c5d0b57c2789f4d0228b /java
parent46843700fd3466cf902e18aac14fbe9d6e383a84 (diff)
Instrumenting runtime classes with toString() to facilitate debuging
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@672978 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r--java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentImpl.java4
-rw-r--r--java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentReferenceImpl.java3
-rw-r--r--java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentServiceImpl.java4
3 files changed, 11 insertions, 0 deletions
diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentImpl.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentImpl.java
index be594994cc..10d12ea80a 100644
--- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentImpl.java
+++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentImpl.java
@@ -103,4 +103,8 @@ public class RuntimeComponentImpl extends ComponentImpl implements RuntimeCompon
public void setModelResolver(ModelResolver modelResolver) {
this.modelResolver = modelResolver;
}
+
+ public String toString() {
+ return getName();
+ }
}
diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentReferenceImpl.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentReferenceImpl.java
index b840de42a8..546b06933b 100644
--- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentReferenceImpl.java
+++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentReferenceImpl.java
@@ -136,4 +136,7 @@ public class RuntimeComponentReferenceImpl extends ComponentReferenceImpl implem
return policyProviders.get(binding);
}
+ public String toString() {
+ return getName();
+ }
}
diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentServiceImpl.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentServiceImpl.java
index 14b38fdd73..e6ac8c44d1 100644
--- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentServiceImpl.java
+++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeComponentServiceImpl.java
@@ -155,4 +155,8 @@ public class RuntimeComponentServiceImpl extends ComponentServiceImpl implements
public List<PolicyProvider> getPolicyProviders(Binding binding) {
return policyProviders.get(binding);
}
+
+ public String toString() {
+ return getName();
+ }
}