From 6f41d8779ba82b282f067818a81123a8063c2734 Mon Sep 17 00:00:00 2001 From: slaws Date: Tue, 22 Sep 2009 15:55:01 +0000 Subject: Add reference promotion builder back in. Need to decide what to do with it. Also add some other comments. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@817707 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/assembly/builder/impl/ModelBuilderImpl.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ModelBuilderImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ModelBuilderImpl.java index 7feae14ed4..514967af9c 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ModelBuilderImpl.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ModelBuilderImpl.java @@ -44,6 +44,7 @@ public class ModelBuilderImpl implements CompositeBuilder, DeployedCompositeBuil private ComponentReferenceBindingBuilderImpl componentReferenceBindingBuilder; private EndpointBuilderImpl endpointBuilder; private EndpointReferenceBuilderImpl endpointReferenceBuilder; + private ComponentReferencePromotionBuilderImpl componentReferencePromotionBuilder; private CompositePolicyBuilderImpl compositePolicyBuilder; /** @@ -67,6 +68,7 @@ public class ModelBuilderImpl implements CompositeBuilder, DeployedCompositeBuil componentReferenceBindingBuilder = new ComponentReferenceBindingBuilderImpl(registry); endpointBuilder = new EndpointBuilderImpl(registry); endpointReferenceBuilder = new EndpointReferenceBuilderImpl(registry); + componentReferencePromotionBuilder = new ComponentReferencePromotionBuilderImpl(registry); compositePolicyBuilder = new CompositePolicyBuilderImpl(registry); } @@ -90,6 +92,8 @@ public class ModelBuilderImpl implements CompositeBuilder, DeployedCompositeBuil // and discards the included composite compositeIncludeBuilder.build(composite, definitions, monitor); + // need to apply policy external attachment + // Expand nested composites. Clone any composite model that // is acting as a component implementation and connects the cloned // model to the component implementation in question @@ -114,11 +118,12 @@ public class ModelBuilderImpl implements CompositeBuilder, DeployedCompositeBuil // TODO - called here at the moment but we could have a separate build phase // to call these. Also we need to re-org these builders bindingURIBuilder.configureBindingURIsAndNames(composite, definitions, monitor); - componentServiceBindingBuilder.build(composite, definitions, monitor); - componentReferenceBindingBuilder.build(composite, definitions, monitor); + componentServiceBindingBuilder.build(composite, definitions, monitor); // binding specific build + componentReferenceBindingBuilder.build(composite, definitions, monitor); // binding specific build endpointBuilder.build(composite, definitions, monitor); endpointReferenceBuilder.build(composite, definitions, monitor); - compositePolicyBuilder.build(composite, definitions, monitor); + componentReferencePromotionBuilder.build(composite, definitions, monitor); // move into the static build? + compositePolicyBuilder.build(composite, definitions, monitor); // the rest of the policy processing? } catch (Exception e) { throw new CompositeBuilderException("Exception while building model " + composite.getName(), e); -- cgit v1.2.3