From 47140fa8d10c952f94c58116973904a4e38ef271 Mon Sep 17 00:00:00 2001 From: slaws Date: Thu, 23 Dec 2010 13:02:14 +0000 Subject: Correct the order that the phase constants appear in to match the actual phase order and make the local binding.sca optimization link to the head of the service operation wire. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1052253 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tuscany/sca/binding/sca/provider/SCABindingInvoker.java | 2 +- .../core-spi/src/main/java/org/apache/tuscany/sca/invocation/Phase.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sca-java-2.x/trunk/modules') diff --git a/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/SCABindingInvoker.java b/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/SCABindingInvoker.java index 8ea754c8fc..3639ee9062 100644 --- a/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/SCABindingInvoker.java +++ b/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/SCABindingInvoker.java @@ -61,7 +61,7 @@ public class SCABindingInvoker extends InterceptorAsyncImpl { * @see org.apache.tuscany.sca.invocation.Interceptor#getNext() */ public Invoker getNext() { - return chain.getHeadInvoker(Phase.SERVICE_POLICY); + return chain.getHeadInvoker(Phase.SERVICE_INTERFACE); } /** diff --git a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Phase.java b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Phase.java index 8bb81b7eda..4f81b763c7 100644 --- a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Phase.java +++ b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Phase.java @@ -52,8 +52,8 @@ public interface Phase { // Service operation chains String SERVICE_BINDING = "service.binding"; // The first phase for incoming invocations via a service - String SERVICE_POLICY = "service.policy"; // service policy handling String SERVICE_INTERFACE = "service.interface"; // data validation and transformation + String SERVICE_POLICY = "service.policy"; // service policy handling String SERVICE = "component.service"; // TODO: not sure if we need to have this phase String IMPLEMENTATION_POLICY = "implementation.policy"; // implementation policy handling String IMPLEMENTATION = "component.implementation"; // implementation invoker -- cgit v1.2.3