From 5cf230ac413329e91232e42c3f4fcf3a4bf59115 Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 23 Jun 2011 10:25:12 +0000 Subject: 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 --- .../src/main/java/org/apache/tuscany/sca/Node.java | 12 ++++++++++++ .../src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java | 5 +++++ 2 files changed, 17 insertions(+) (limited to 'sca-java-2.x/trunk') 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 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 { } } } + } -- cgit v1.2.3