diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules')
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 { } } } + } |