[
https://issues.apache.org/jira/browse/TUSCANY-824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Scott Kurz updated TUSCANY-824:
-------------------------------
Attachment: skurz.824.v1.patch
This patch attempts to solve two databinding-related problems, though neither
solution has necessarily been agreed upon by the community.
First, it sets up an operation DB (if one isn't set) by looking for non-default
DBs set on the inputs/output/faults. This is what we were specifically
discussing in the thread mentioned in the JIRA.
Second, I also addressed the question of how to calculate the databinding of a
fault type.
As this comment in DataTransformationInteceptor.getFaultType() mentions:
private DataType getFaultType(DataType exceptionType) {
// FIXME: We cannot assume the exception will have a databinding set
there might be no DB on the exception type. The case I was trying to address
was the case that the exception class was a POJO with no
special DB, but the exception class, in the pattern mentioned in the JAX-WS
spec, wrappers a FaultBean accessible via getFaultInfo().
Since the various ExceptionHandler's already know how to "unwrapper" an
exception to find the DataType of the FaultBean within, I added an option to
the DefaultDataBindingExtensionPoint to check for an ExceptionHandler for each
of the DB's it goes through, and see if exceptionHandler.getFaultType(..) can
return something.
Even if this seems worthy, I know it might be best handled separately... but
this JIRA's a bit broad to begin with anyway.
> DataBinding: Is it a concern of Programming Model vs. Assembly?
> ---------------------------------------------------------------
>
> Key: TUSCANY-824
> URL: https://issues.apache.org/jira/browse/TUSCANY-824
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-M2
> Reporter: ant elder
> Assignee: Raymond Feng
> Priority: Critical
> Fix For: Java-SCA-Next
>
> Attachments: skurz.824.v1.patch
>
>
> There have been some question about the DataBinding framework and if it
> should be a concern of the Programming Model vs. Assembly?
> See: http://www.mail-archive.com/[email protected]/msg08679.html
> and a follow up mention in:
> http://www.mail-archive.com/[email protected]/msg09363.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]