From d76a24e5380b9834cb803417d84d9b802cd3f74c Mon Sep 17 00:00:00 2001 From: slaws Date: Sun, 9 Nov 2008 19:27:28 +0000 Subject: Tidy wire format support (move model into binding-jms and rename default to textxml). Extend support to include text and object. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@712538 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tuscany/sca/provider/WireFormatProvider.java | 12 ++++++++++++ .../java/org/apache/tuscany/sca/runtime/RuntimeWire.java | 10 ++++++++++ 2 files changed, 22 insertions(+) (limited to 'java/sca/modules/core-spi/src') diff --git a/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/WireFormatProvider.java b/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/WireFormatProvider.java index cc7f4626d3..db38945fc1 100644 --- a/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/WireFormatProvider.java +++ b/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/WireFormatProvider.java @@ -19,12 +19,24 @@ package org.apache.tuscany.sca.provider; +import org.apache.tuscany.sca.interfacedef.InterfaceContract; import org.apache.tuscany.sca.invocation.Interceptor; /** * @version $Rev$ $Date$ */ public interface WireFormatProvider { + + /* + * Return the contract that describes the interface that + * is providing data to or accepting data from the + * wire format interceptor. The wire formats job + * is to translate between this interface contract and the + * format on the wire + * @return the wire format interface contract + */ + public InterfaceContract getWireFormatInterfaceContract(); + /** * Create an interceptor for the wire format * @return An interceptor that realize the policySet diff --git a/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeWire.java b/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeWire.java index 609e2aa89b..a2e7152202 100644 --- a/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeWire.java +++ b/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeWire.java @@ -81,6 +81,16 @@ public interface RuntimeWire extends Cloneable { */ InvocationChain getBindingInvocationChain(); + /** + * This invoke method assumes that the binding invocation chain is in force + * and that there will be an operation selector element there to + * determine which operation to call + * @param msg The message + * @return The result + * @throws InvocationTargetException + */ + Object invoke(Message msg) throws InvocationTargetException; + /** * Invoke an operation with given arguments * @param operation The operation -- cgit v1.2.3