From 2e6254cc7e82011500f7459c70b13347f050d4de Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 3 Mar 2010 17:16:53 +0000 Subject: Avoiding calling createInterceptor multiple times git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@918590 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java | 5 +++-- 1 file 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); } } } -- cgit v1.2.3