From a3c2a9e3199f458f6b6ebc0b9a91f9bb8b638441 Mon Sep 17 00:00:00 2001 From: lresende Date: Tue, 1 Jul 2008 02:58:15 +0000 Subject: 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 --- .../org/apache/tuscany/sca/core/assembly/RuntimeComponentImpl.java | 4 ++++ .../tuscany/sca/core/assembly/RuntimeComponentReferenceImpl.java | 3 +++ .../apache/tuscany/sca/core/assembly/RuntimeComponentServiceImpl.java | 4 ++++ 3 files changed, 11 insertions(+) (limited to 'java/sca/modules/core/src') 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 getPolicyProviders(Binding binding) { return policyProviders.get(binding); } + + public String toString() { + return getName(); + } } -- cgit v1.2.3