summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/core-spi/src
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-11-09 19:27:28 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-11-09 19:27:28 +0000
commitd76a24e5380b9834cb803417d84d9b802cd3f74c (patch)
tree5d75a41b8aa40c6aba610fc1e69f073b8ed50ad3 /java/sca/modules/core-spi/src
parent5182848f57d44d5d694080e7832cd0bdd66200f3 (diff)
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
Diffstat (limited to 'java/sca/modules/core-spi/src')
-rw-r--r--java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/WireFormatProvider.java12
-rw-r--r--java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeWire.java10
2 files changed, 22 insertions, 0 deletions
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
@@ -82,6 +82,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
* @param args The arguments