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-17 11:08:14 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-05-17 11:08:14 +0000
commit9365ad87df669a52da9f72adaab101071dec5be2 (patch)
tree6ba2f9b493eb9f3d65bfbecff8c6c9278f002def /sca-java-2.x/trunk/modules/core/src
parenteb2e833e9d2abeb28fb7dab7709337735046593e (diff)
Don't include contributions with now running composites
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1104136 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.java10
1 files changed, 6 insertions, 4 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 6b99b77802..994783b928 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
@@ -191,10 +191,12 @@ public class DomainRegistryImpl extends BaseDomainRegistry implements DomainRegi
public Map<String, List<QName>> getRunningCompositeNames() {
Map<String, List<QName>> compositeNames = new HashMap<String, List<QName>>();
for (String curi : runningComposites.keySet()) {
- List<QName> names = new ArrayList<QName>();
- compositeNames.put(curi, names);
- for (QName qn : runningComposites.get(curi).keySet()) {
- names.add(qn);
+ if (runningComposites.get(curi).size() > 0) {
+ List<QName> names = new ArrayList<QName>();
+ compositeNames.put(curi, names);
+ for (QName qn : runningComposites.get(curi).keySet()) {
+ names.add(qn);
+ }
}
}
return compositeNames;