[
https://issues.apache.org/jira/browse/TUSCANY-1317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Amita Vadhavkar updated TUSCANY-1317:
-------------------------------------
Attachment: JIRA1317Design.txt
1317.patch
Changed in patch for Jul 6:-
1)setting XML_LOAD_SCHEMA to FALSE, thus rolled back changes from
XMLDocumentTestCase and XMLStreamHelperTestCase, ExtensibleTestCase(tools),but
added changes to SchemaLocationTestCase
2)XMLStreamHelper - same support to SAVE options as XMLHelper
Please see the comment in SchemaLocationTestCase, if this change is not done,
then the default helper context option is not reset back to FALSE. And as the
newly
introduced code - which merges helper context options with the load() time
specified options, the XML_LOAD_SCHEMA option was TRUE for all the test cases
following SchemaLocationTestCase, which caused MalFormedURL exception at
XMLDocumentTestCase for the previously discussed reasons.
So, as long as , we are doing getMergedOptions() in helper context before
invokation
of load/save, we need to ensure, any test case changing XML_LOAD_SCHEMA from
default (FALSE) to TRUE, should take care of resetting it back.
3)
> Provide a way to set default XML load options to be used during Java
> deserialization
> ------------------------------------------------------------------------------------
>
> Key: TUSCANY-1317
> URL: https://issues.apache.org/jira/browse/TUSCANY-1317
> Project: Tuscany
> Issue Type: New Feature
> Components: Java SDO Implementation
> Affects Versions: Java-SDO-beta1, Java-SDO-1.0
> Reporter: Daniel Peter
> Fix For: Java-SDO-1.0
>
> Attachments: 1317.patch, 1317.patch, 1317.patch, 1317.patch,
> JIRA1317Design.txt, JIRA1317Design.txt, JIRA1317Design.txt,
> JIRA_1317_June21.txt, JIRA_1317_June25_Amita.txt
>
>
> XML load options can be passed when calling the XMLHelper.load(...) methods.
> But there is currently no way to pass such load options to be used during
> Java deserialization.
> Thus a way to set default load options should be provided, e.g.
> SDOUtil.setDefaultXMLOptions(HelperContext, Object options)
> These default options could then be picked up during Java deserialization,
> i.e. in the method readDataObject in class HelperProviderImpl.ResolvableImpl.
> Additionally the XMLResource.OPTION_RECORD_UNKNOWN_FEATURE option could be
> exposed in Tuscany SDO.
--
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]