summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/node-impl/src
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-08-18 12:52:25 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-08-18 12:52:25 +0000
commit124f75b6ac090f38120c4e1f94e86d7fdbe8fe00 (patch)
treee034e76f0083d2163868a05c49b4703d9ff7d1a5 /java/sca/modules/node-impl/src
parent9e2093af171365bd300c93b757a2ab53ac41609d (diff)
Raise an error if two composites with the same name are found (ASM_6001). Also remove code marked with FIXME that causes composites to be added twice under normal conditions.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@805398 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/node-impl/src')
-rw-r--r--java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java b/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java
index 8c4ebabe79..e81e244458 100644
--- a/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java
+++ b/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeFactoryImpl.java
@@ -318,8 +318,7 @@ public class NodeFactoryImpl extends NodeFactory {
attached = true;
}
contribution.getDeployables().add(composite);
- // REVIEW: Is it needed?
- contribution.getModelResolver().addModel(composite);
+
return attached;
}
@@ -541,6 +540,7 @@ public class NodeFactoryImpl extends NodeFactory {
for (Composite composite : contribution.getDeployables()) {
// Include the node composite in the top-level composite
tempComposite.getIncludes().add(composite);
+ logger.log(Level.INFO, "Adding composite: " + composite.getName() + " to domain");
}
}