diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-26 12:13:41 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-26 12:13:41 +0000 |
commit | ae8f0fbfd36754e01a9211b7b41a0042db3e75ec (patch) | |
tree | 266b015967514ced26cfa5ec4a0d63512856450b /sca-java-2.x/trunk/modules/core/src | |
parent | 976911081db0dbc3d42ec7c182aa8d8c6cc406c0 (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.java | 5 |
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 |