You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sc...@apache.org on 2012/03/26 20:34:04 UTC
svn commit: r1305484 -
/tuscany/sca-java-2.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/WrapperJavaInterfaceProcessor.java
Author: scottkurz
Date: Mon Mar 26 18:34:04 2012
New Revision: 1305484
URL: http://svn.apache.org/viewvc?rev=1305484&view=rev
Log:
Don't look at fault databindings in order to calculate output wrapper databinding.
Modified:
tuscany/sca-java-2.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/WrapperJavaInterfaceProcessor.java
Modified: tuscany/sca-java-2.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/WrapperJavaInterfaceProcessor.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/WrapperJavaInterfaceProcessor.java?rev=1305484&r1=1305483&r2=1305484&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/WrapperJavaInterfaceProcessor.java (original)
+++ tuscany/sca-java-2.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/WrapperJavaInterfaceProcessor.java Mon Mar 26 18:34:04 2012
@@ -102,8 +102,8 @@ public class WrapperJavaInterfaceProcess
}
/*
- * Assigns an operation DB if one of the input types, output type, fault types has a non-default DB.
- * However, if two of the input types, output type, fault types have two different non-default DBs
+ * Assigns an operation DB if one of the input types has a non-default DB.
+ * However, if two of the input types, have two different non-default DBs
* ( e.g. SDO and JAXB), then we do nothing to the operation DB.
*
* The method logic assumes the JavaBeans DataBinding is the default
@@ -139,19 +139,16 @@ public class WrapperJavaInterfaceProcess
}
}
- // TUSCANY-3804: handle output wrapper separately
- // change here is different to that in 3804
- // to deal with logical data type + faults
+ // TUSCANY-3804: handle output wrapper separately. Ignore faults
+ // in this calculation, as they're not part of the output wrapper, and
+ // we have our own introspection/framework to deal with fault databindings.
+ //
private String assignOutputDataBinding(Operation operation) {
Set<String> dbs = new HashSet<String>();
List<DataType> opDataTypes = new LinkedList<DataType>();
opDataTypes.addAll(operation.getOutputType().getLogical());
- for (DataType<DataType> ft : operation.getFaultTypes()) {
- opDataTypes.add(ft.getLogical());
- }
-
for (DataType<?> d : opDataTypes) {
if (d != null) {
String dataBinding = d.getDataBinding();