diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-19 08:48:21 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-19 08:48:21 +0000 |
commit | ce208dd59902981b9fac895a6596d0e08b065da6 (patch) | |
tree | 6d146851fb908e0a17ebdebcfe174d5a82015f42 /sca-java-2.x/trunk/modules/core | |
parent | 96b8adf748b455a3004b75de9f64a80747a6b399 (diff) |
Update to add APIs to get at which composites are running where
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1124606 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/core')
-rw-r--r-- | sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/DomainRegistryImpl.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/DomainRegistryImpl.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/DomainRegistryImpl.java index d0b8b53bf9..c3ffd9091f 100644 --- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/DomainRegistryImpl.java +++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/DomainRegistryImpl.java @@ -228,8 +228,19 @@ public class DomainRegistryImpl extends BaseDomainRegistry implements DomainRegi } } + private static final String LOCAL_MEMBER_NAME = "LocalOnly"; @Override public List<String> getMembers() { - return Arrays.asList(new String[]{"LocalOnly"}); + return Arrays.asList(new String[]{LOCAL_MEMBER_NAME}); + } + + @Override + public String getLocalMember() { + return LOCAL_MEMBER_NAME; + } + + @Override + public String getRunningMember(String contributionURI, String compositeURI) { + return LOCAL_MEMBER_NAME; } } |