summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/shell/src/main/java
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-11-23 12:52:46 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-11-23 12:52:46 +0000
commita87c291011018c88d4b4250604b74562ec7a8373 (patch)
tree68bfe9d26b902482bf5d1f73ba39cc9f006ad70c /sca-java-2.x/trunk/modules/shell/src/main/java
parent3cc5b97ee63a1416b6b36874a910ce8c56fa37d6 (diff)
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
Diffstat (limited to 'sca-java-2.x/trunk/modules/shell/src/main/java')
-rw-r--r--sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java7
1 files changed, 7 insertions, 0 deletions
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;
}