summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-10-05 15:19:34 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-10-05 15:19:34 +0000
commit43655bfa4afe2d7faef2559f167850c664f5357c (patch)
tree63882c81c20ae89e7481a61e70f2dc052a86ce68
parent09468adb8d2cb62017710e33eb344a8f56aacc96 (diff)
Make sure the components inside the top level includes are cloned. Before this change all composite implementations of the same type were shared between the components using them.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@821834 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/sca/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositeCloneBuilderImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/sca/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositeCloneBuilderImpl.java b/java/sca/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositeCloneBuilderImpl.java
index 73626243e5..d59c85d5c6 100644
--- a/java/sca/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositeCloneBuilderImpl.java
+++ b/java/sca/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/CompositeCloneBuilderImpl.java
@@ -47,13 +47,14 @@ public class CompositeCloneBuilderImpl implements CompositeBuilder {
// Try to avoid clone for top-level composites that are added to the domain composite
for (Composite included : composite.getIncludes()) {
cloneIncludes(included);
+ cloneCompositeImplementations(included);
}
} else {
// Clone the includes
cloneIncludes(composite);
+ cloneCompositeImplementations(composite);
}
- cloneCompositeImplementations(composite);
return composite;
}