summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-06-23 10:25:12 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-06-23 10:25:12 +0000
commit5cf230ac413329e91232e42c3f4fcf3a4bf59115 (patch)
tree762cfafd893ba3faa208f92c646570f3d30d52eb /sca-java-2.x/trunk
parent24b76e5ca7d5a977c6bc680c475d2e5ae10ba1e8 (diff)
Add a method to get the domain name as well as the domain URI
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1138815 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/Node.java12
-rw-r--r--sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java5
2 files changed, 17 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/Node.java b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/Node.java
index 8531642389..b316ae7cbd 100644
--- a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/Node.java
+++ b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/Node.java
@@ -237,6 +237,18 @@ public interface Node {
*/
Contribution getContribution(String uri) throws ContributionReadException, ValidationException;
+ /**
+ * Gets the Domain URI used to configure this Node.
+ *
+ * @return the domain uri string
+ */
+ String getDomainURI();
+
+ /**
+ * Gets the Domain name of this Node.
+ *
+ * @return the domain name
+ */
String getDomainName();
List<String> getDeployableCompositeURIs(String contributionURI);
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java
index b34803497b..e67fe456dd 100644
--- a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java
+++ b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java
@@ -348,6 +348,10 @@ public class NodeImpl implements Node {
}
}
+ public String getDomainURI() {
+ return domainRegistry.getDomainURI();
+ }
+
public String getDomainName() {
return domainRegistry.getDomainName();
}
@@ -528,4 +532,5 @@ public class NodeImpl implements Node {
}
}
}
+
}