From abb2675bc0937b62e91448cfed0c7343ca00b850 Mon Sep 17 00:00:00 2001 From: slaws Date: Mon, 6 Dec 2010 12:47:39 +0000 Subject: TUSCANY-3801 - move chain tail location code into the chain implementation git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1042609 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/tuscany/sca/invocation/InvocationChain.java | 7 +++++++ .../src/main/java/org/apache/tuscany/sca/runtime/Invocable.java | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'sca-java-2.x/trunk/modules/core-spi/src') diff --git a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/InvocationChain.java b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/InvocationChain.java index d10a5689d4..1d38ec7101 100644 --- a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/InvocationChain.java +++ b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/InvocationChain.java @@ -81,6 +81,13 @@ public interface InvocationChain { */ Invoker getHeadInvoker(); + /** + * Returns the last invoker in the chain. + * + * @return The last invoker in the chain + */ + Invoker getTailInvoker(); + /** * Get the first invoker that is on the same or later phase * @param phase diff --git a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/Invocable.java b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/Invocable.java index cf9b8ac49e..7c7c104947 100644 --- a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/Invocable.java +++ b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/Invocable.java @@ -145,7 +145,7 @@ public interface Invocable { * @param tailInvoker the invoker at the end of the chain * @param msg The request message */ - void invokeAsyncResponse(InvokerAsync tailInvoker, Message msg); + void invokeAsyncResponse(Message msg); /** * Get a list of policy providers -- cgit v1.2.3