From 43655bfa4afe2d7faef2559f167850c664f5357c Mon Sep 17 00:00:00 2001 From: slaws Date: Mon, 5 Oct 2009 15:19:34 +0000 Subject: 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 --- .../org/apache/tuscany/sca/builder/impl/CompositeCloneBuilderImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'java/sca/modules/builder') 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; } -- cgit v1.2.3