summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/core/src
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-05-26 12:13:41 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-05-26 12:13:41 +0000
commitae8f0fbfd36754e01a9211b7b41a0042db3e75ec (patch)
tree266b015967514ced26cfa5ec4a0d63512856450b /sca-java-2.x/trunk/modules/core/src
parent976911081db0dbc3d42ec7c182aa8d8c6cc406c0 (diff)
Update getRunningMember to return null if the composite isn't started
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1127880 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/core/src')
-rw-r--r--sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/DomainRegistryImpl.java5
1 files changed, 4 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 c0302022a6..6344e5e906 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
@@ -242,7 +242,10 @@ public class DomainRegistryImpl extends BaseDomainRegistry implements DomainRegi
@Override
public String getRunningMember(String contributionURI, String compositeURI) {
- return LOCAL_MEMBER_NAME;
+ if (getRunningComposite(contributionURI, compositeURI) != null) {
+ return LOCAL_MEMBER_NAME;
+ }
+ return null;
}
@Override