From b42f111b7e3161a49fa700ca3ce588a60fde2bbf Mon Sep 17 00:00:00 2001 From: antelder Date: Fri, 11 Sep 2009 08:34:02 +0000 Subject: Add methods used by the JMS binding to the core-spi module git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@813718 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tuscany/sca/invocation/InvocationChain.java | 7 +++++++ .../main/java/org/apache/tuscany/sca/invocation/Message.java | 11 +++++++++++ 2 files changed, 18 insertions(+) (limited to 'java/sca') diff --git a/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/InvocationChain.java b/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/InvocationChain.java index 8d6578baa6..4f131365fa 100644 --- a/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/InvocationChain.java +++ b/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/InvocationChain.java @@ -51,6 +51,13 @@ public interface InvocationChain { */ Operation getSourceOperation(); + /** + * Updates the source operation for this invocation chain. + * + * @param operation The new source operation for this invocation chain + */ + void setSourceOperation(Operation operation); + /** * Adds an interceptor to the chain. For reference side, it will be added to * Phase.REFERENCE. For service side, it will be added to Phase.SERVICE diff --git a/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Message.java b/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Message.java index c9ee00ff85..9bf8355ef1 100644 --- a/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Message.java +++ b/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/invocation/Message.java @@ -113,4 +113,15 @@ public interface Message { * @return */ List getHeaders(); + + /** + * Returns the binding context in force for this message + */ + T getBindingContext(); + + /** + * Set the binding context that is in force for this message + * @param bindingContext + */ + void setBindingContext(T bindingContext); } -- cgit v1.2.3