From 0ab7ca59190fe5ac1e37c0e0196d7701a765f478 Mon Sep 17 00:00:00 2001 From: slaws Date: Mon, 20 Feb 2012 10:57:50 +0000 Subject: TUSCANY-3459 - Allow the remotable status of an interface to be overridden using the remotable attributed on the SCDL interface element as described by the OASIS assembly spec. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1291191 13f79535-47bb-0310-9956-ffa450edef68 --- .../databinding/processor/DataBindingJavaInterfaceProcessor.java | 8 +++++--- .../core/databinding/processor/WrapperJavaInterfaceProcessor.java | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'sca-java-2.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany') diff --git a/sca-java-2.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/DataBindingJavaInterfaceProcessor.java b/sca-java-2.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/DataBindingJavaInterfaceProcessor.java index e904e36901..7c10ae45e9 100644 --- a/sca-java-2.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/DataBindingJavaInterfaceProcessor.java +++ b/sca-java-2.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/DataBindingJavaInterfaceProcessor.java @@ -47,9 +47,11 @@ public class DataBindingJavaInterfaceProcessor implements JavaInterfaceVisitor { } public void visitInterface(JavaInterface javaInterface) throws InvalidInterfaceException { - if (!javaInterface.isRemotable()) { - return; - } + // Set the data types regardless in case the + // user overrides the remotable status in the SCDL + //if (!javaInterface.isRemotable()) { + // return; + //} List operations = javaInterface.getOperations(); processInterface(javaInterface, operations); } diff --git a/sca-java-2.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/WrapperJavaInterfaceProcessor.java b/sca-java-2.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/WrapperJavaInterfaceProcessor.java index 7bae80d2c4..e81b3a9080 100644 --- a/sca-java-2.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/WrapperJavaInterfaceProcessor.java +++ b/sca-java-2.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/WrapperJavaInterfaceProcessor.java @@ -52,9 +52,11 @@ public class WrapperJavaInterfaceProcessor implements JavaInterfaceVisitor { } public void visitInterface(JavaInterface javaInterface) throws InvalidInterfaceException { - if (!javaInterface.isRemotable()) { - return; - } + // create regardless in case the user overrides the remotable flag + // in the SCDL + //if (!javaInterface.isRemotable()) { + // return; + //} for (Operation operation : javaInterface.getOperations()) { WrapperInfo inputWrapperInfo = operation.getInputWrapper(); WrapperInfo outputWrapperInfo = operation.getOutputWrapper(); -- cgit v1.2.3