summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-03-19 16:15:14 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-03-19 16:15:14 +0000
commitf167d51eed27239fb7ac8c3b518742f5f0261677 (patch)
tree62a40f49fc00e991dd1ae0dcf966db3099fced8a /java
parentdcbff0df93448ef786c2e5cb0320f3895759171b (diff)
Move fault introspection into the FaultMapper
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@756073 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r--java/sca/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/DataBindingJavaInterfaceProcessor.java7
-rw-r--r--java/sca/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSJavaInterfaceProcessor.java2
2 files changed, 1 insertions, 8 deletions
diff --git a/java/sca/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/DataBindingJavaInterfaceProcessor.java b/java/sca/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/DataBindingJavaInterfaceProcessor.java
index 53a4aeca00..c915f389ea 100644
--- a/java/sca/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/DataBindingJavaInterfaceProcessor.java
+++ b/java/sca/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/processor/DataBindingJavaInterfaceProcessor.java
@@ -125,13 +125,6 @@ public class DataBindingJavaInterfaceProcessor implements JavaInterfaceVisitor {
}
dataBindingRegistry.introspectType(d, operation);
}
- for (org.apache.tuscany.sca.interfacedef.DataType<?> d : operation.getFaultTypes()) {
- if (d.getDataBinding() == null) {
- d.setDataBinding(dataBindingId);
- }
- // TODO: Handle exceptions
- dataBindingRegistry.introspectType(d, operation);
- }
}
}
}
diff --git a/java/sca/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSJavaInterfaceProcessor.java b/java/sca/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSJavaInterfaceProcessor.java
index d3c461ff73..50cdde658e 100644
--- a/java/sca/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSJavaInterfaceProcessor.java
+++ b/java/sca/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/JAXWSJavaInterfaceProcessor.java
@@ -318,7 +318,7 @@ public class JAXWSJavaInterfaceProcessor implements JavaInterfaceVisitor {
for (DataType exceptionType : operation.getFaultTypes()) {
faultExceptionMapper.introspectFaultDataType(exceptionType, operation, true);
DataType faultType = (DataType)exceptionType.getLogical();
- if (faultType.getDataBinding() == JavaExceptionDataBinding.NAME) {
+ if (JavaExceptionDataBinding.NAME.equals(faultType.getDataBinding())) {
// The exception class doesn't have an associated bean class, so
// synthesize a virtual bean by introspecting the exception class.
createSyntheticBean(operation, exceptionType);