diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-06-13 15:19:01 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-06-13 15:19:01 +0000 |
commit | 9dc381f1ac6bfd7e6bc19f3e7560d085c4f84c9a (patch) | |
tree | 1f499daf4877159b6f2127007768639ddec692b8 /sca-java-2.x/trunk/modules/domain-node/src | |
parent | a7b5ef23de1d3dd4aac8ed2ea6c1b6f725e2335a (diff) |
Update so that for nodes that don't use the default domain name the domain name is included in the service uri (except for binding.sca)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1135139 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/domain-node/src')
-rw-r--r-- | sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/DeployedComposite.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/DeployedComposite.java b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/DeployedComposite.java index 21d20ff6a1..ce3713324c 100644 --- a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/DeployedComposite.java +++ b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/DeployedComposite.java @@ -20,8 +20,10 @@ package org.apache.tuscany.sca.impl; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; +import java.util.Map; import javax.xml.namespace.QName; @@ -82,7 +84,14 @@ public class DeployedComposite { contributions.get(0).getDeployables().add(composite); Monitor monitor = deployer.createMonitor(); - builtComposite = deployer.build(contributions, dependedOnContributions, new HashMap<QName, List<String>>(), monitor); + Map<QName, List<String>> bs = new HashMap<QName, List<String>>(); + + // TODO: don't hardcode the default domain name, instead do something like having a property on Node that says whether or not the + // domain name should be included in the service uri + if (!"default".equals(domainRegistry.getDomainURI())) { + bs.put(new QName("default"), Arrays.asList(new String[]{domainRegistry.getDomainURI()})); + } + builtComposite = deployer.build(contributions, dependedOnContributions, bs, monitor); // TODO: Ideally deployer.build would set the name and uri to what this needs builtComposite.setName(composite.getName()); builtComposite.setURI(composite.getURI()); |