tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r918590 - /tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java
Date Wed, 03 Mar 2010 17:16:53 GMT
Author: lresende
Date: Wed Mar  3 17:16:53 2010
New Revision: 918590

URL: http://svn.apache.org/viewvc?rev=918590&view=rev
Log:
Avoiding calling createInterceptor multiple times

Modified:
    tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java

Modified: tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java?rev=918590&r1=918589&r2=918590&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java
Wed Mar  3 17:16:53 2010
@@ -334,7 +334,7 @@
             for (PolicyProvider p : pps) {
                 Interceptor interceptor = p.createInterceptor(operation);
                 if (interceptor != null) {
-                    chain.addInterceptor(p.createInterceptor(operation));
+                    chain.addInterceptor(interceptor);
                 }
             }
         }
@@ -389,7 +389,8 @@
             for (PolicyProvider p : pps) {
                 Interceptor interceptor = p.createInterceptor(operation);
                 if (interceptor != null) {
-                    chain.addInterceptor(p.createInterceptor(operation));
+                    //chain.addInterceptor(p.createInterceptor(operation));
+                    chain.addInterceptor(interceptor);
                 }
             }
         }



Mime
View raw message