summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/core/src
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2010-03-03 17:16:53 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2010-03-03 17:16:53 +0000
commit2e6254cc7e82011500f7459c70b13347f050d4de (patch)
treef6c6a39dc42b8fa7e13a28c78705bb30047ead11 /sca-java-2.x/trunk/modules/core/src
parent46f24f4efd75292aa302fae47c724a826c50cbca (diff)
Avoiding calling createInterceptor multiple times
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@918590 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/core/src')
-rw-r--r--sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java
index 6f784fc255..d1c81ef8ee 100644
--- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java
+++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java
@@ -334,7 +334,7 @@ public class RuntimeEndpointImpl extends EndpointImpl implements RuntimeEndpoint
for (PolicyProvider p : pps) {
Interceptor interceptor = p.createInterceptor(operation);
if (interceptor != null) {
- chain.addInterceptor(p.createInterceptor(operation));
+ chain.addInterceptor(interceptor);
}
}
}
@@ -389,7 +389,8 @@ public class RuntimeEndpointImpl extends EndpointImpl implements RuntimeEndpoint
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);
}
}
}