From a87c291011018c88d4b4250604b74562ec7a8373 Mon Sep 17 00:00:00 2001 From: antelder Date: Tue, 23 Nov 2010 12:52:46 +0000 Subject: Update to include binding URIs in the service output git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1038091 13f79535-47bb-0310-9956-ffa450edef68 --- .../shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sca-java-2.x/trunk/modules') diff --git a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java index 66af167b0c..b6bd70a5cb 100644 --- a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java +++ b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java @@ -37,8 +37,10 @@ import java.util.List; import java.util.Map; import java.util.concurrent.Callable; +import org.apache.tuscany.sca.assembly.Binding; import org.apache.tuscany.sca.assembly.Composite; import org.apache.tuscany.sca.assembly.Endpoint; +import org.apache.tuscany.sca.assembly.SCABinding; import org.apache.tuscany.sca.common.java.io.IOHelper; import org.apache.tuscany.sca.contribution.Artifact; import org.apache.tuscany.sca.contribution.Contribution; @@ -344,6 +346,11 @@ public class Shell { EndpointRegistry reg = ((NodeImpl)getNode()).getEndpointRegistry(); for (Endpoint endpoint : reg.getEndpoints()) { out.println(endpoint.getComponent().getURI() + "/" + endpoint.getService().getName()); + for (Binding b : endpoint.getService().getBindings()) { + if (!SCABinding.TYPE.equals(b.getType())) { + out.println(" " + b.getType().getLocalPart() + " " + b.getURI()); + } + } } return true; } -- cgit v1.2.3