tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1104136 - /tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/DomainRegistryImpl.java
Date Tue, 17 May 2011 11:08:14 GMT
Author: antelder
Date: Tue May 17 11:08:14 2011
New Revision: 1104136

URL: http://svn.apache.org/viewvc?rev=1104136&view=rev
Log:
Don't include contributions with now running composites

Modified:
    tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/DomainRegistryImpl.java

Modified: tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/DomainRegistryImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/DomainRegistryImpl.java?rev=1104136&r1=1104135&r2=1104136&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/DomainRegistryImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/DomainRegistryImpl.java
Tue May 17 11:08:14 2011
@@ -191,10 +191,12 @@ public class DomainRegistryImpl extends 
     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;



Mime
View raw message