tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1137222 - /tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointBuilderImpl.java
Date Sat, 18 Jun 2011 18:06:52 GMT
Author: antelder
Date: Sat Jun 18 18:06:51 2011
New Revision: 1137222

URL: http://svn.apache.org/viewvc?rev=1137222&view=rev
Log:
Clear out old endpoints before adding the binding endpoints. Without this you get duplicated
endpoints when reusing contributions. It may be that we need a better way of resetting this
and other things for restarts

Modified:
    tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointBuilderImpl.java

Modified: tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointBuilderImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointBuilderImpl.java?rev=1137222&r1=1137221&r2=1137222&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointBuilderImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/EndpointBuilderImpl.java
Sat Jun 18 18:06:51 2011
@@ -113,6 +113,7 @@ public class EndpointBuilderImpl impleme
                         // uri is calculated correctly
                         // Callback endpoints may not be added here in the case that the
                         // forward reference is not yet resolved. 
+                        service.getEndpoints().clear();
                         for (Binding binding : service.getBindings()) {
                             Endpoint endpoint = assemblyFactory.createEndpoint();
                             endpoint.setComponent(component);



Mime
View raw message