[
https://issues.apache.org/jira/browse/CXF-6107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Pell updated CXF-6107:
----------------------------
Description:
In order to support some flexibility over how the XML is loaded, would be good
to be able to use a custom XML Stream Reader that can adjust it's behaviour
based on the state of the Unmarshaller.
Adding a new interface
org.apache.cxf.jaxb.UnmarshallerAwareXMLStreamReader
public interface UnmarshallerAwareXMLStreamReader {
void setUnmarshaller(Unmarshaller unmarshaller);
}
The org.apache.cxf.jaxb.JAXBEncoderDecoder will inject the Unmarshaller into
the Reader if it implements the interface.
was:In order to support some flexibility over how the XML is loaded, would be
good to be able to have an extension point in the
org.apache.cxf.jaxb.io.DataReaderImpl to be able to create a
StreamReaderDelegate that has access to the Unmarshaller and
UnmarshallerContext.
Affects Version/s: 2.7.13
3.0.2
> Supporting Unmarshaller aware XML Stream Readers in jaxb data binding
> ---------------------------------------------------------------------
>
> Key: CXF-6107
> URL: https://issues.apache.org/jira/browse/CXF-6107
> Project: CXF
> Issue Type: Improvement
> Affects Versions: 2.7.13, 3.0.2
> Reporter: Jason Pell
> Assignee: Jason Pell
>
> In order to support some flexibility over how the XML is loaded, would be
> good to be able to use a custom XML Stream Reader that can adjust it's
> behaviour based on the state of the Unmarshaller.
> Adding a new interface
> org.apache.cxf.jaxb.UnmarshallerAwareXMLStreamReader
> public interface UnmarshallerAwareXMLStreamReader {
> void setUnmarshaller(Unmarshaller unmarshaller);
> }
> The org.apache.cxf.jaxb.JAXBEncoderDecoder will inject the Unmarshaller into
> the Reader if it implements the interface.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)