From fa1fc36d0706759915fe770e17f6682c71b22fc0 Mon Sep 17 00:00:00 2001 From: slaws Date: Thu, 17 Jun 2010 13:55:03 +0000 Subject: Add a flag to the binding builder to indicate that generated data should be regenerated. Also rename the methods for getting/setting the generated data to make it more obvious that that's what it's doing. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@955601 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tuscany/sca/core/context/impl/ServiceReferenceImpl.java | 2 +- .../tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'sca-java-2.x/trunk/modules/core/src') diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ServiceReferenceImpl.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ServiceReferenceImpl.java index 5d6719bc81..0cda879011 100644 --- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ServiceReferenceImpl.java +++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ServiceReferenceImpl.java @@ -285,7 +285,7 @@ public class ServiceReferenceImpl implements ServiceReferenceExt { BindingBuilder bindingBuilder = builders.getBindingBuilder(binding.getType()); if (bindingBuilder != null) { org.apache.tuscany.sca.assembly.builder.BuilderContext context = new BuilderContext(registry); - bindingBuilder.build(endpointReference.getComponent(), reference, endpointReference.getBinding(), context); + bindingBuilder.build(endpointReference.getComponent(), reference, endpointReference.getBinding(), context, false); } } diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java index 62d7750fe1..7e49d45fe3 100644 --- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java +++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java @@ -349,7 +349,8 @@ public class EndpointReferenceBinderImpl implements EndpointReferenceBinder { builder.build(endpointReference.getComponent(), endpointReference.getReference(), endpointReference.getBinding(), - new BuilderContext(extensionPoints)); + new BuilderContext(extensionPoints), + false); } } @@ -439,7 +440,8 @@ public class EndpointReferenceBinderImpl implements EndpointReferenceBinder { builder.build(endpoint.getComponent(), endpoint.getService(), endpoint.getBinding(), - new BuilderContext(extensionPoints)); + new BuilderContext(extensionPoints), + true); } } -- cgit v1.2.3