[
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.
Add new interfaces
org.apache.cxf.jaxb.UnmarshallerAwareXMLStreamReader
public interface UnmarshallerAwareXMLStreamReader {
void setUnmarshaller(Unmarshaller unmarshaller);
}
org.apache.cxf.jaxb.UnmarshallerAwareXMLStreamReader
public interface MarshallerAwareXMLStreamWriter {
void setMarshaller(Marshaller unmarshaller);
}
The org.apache.cxf.jaxb.JAXBEncoderDecoder will inject the (Un)marshaller into
the Reader / Writer or 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 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.
> Supporting (Un)marshaller aware XML Stream Readers and Writers 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
> Priority: Minor
> Fix For: 2.7.14
>
>
> 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.
> Add new interfaces
> org.apache.cxf.jaxb.UnmarshallerAwareXMLStreamReader
> public interface UnmarshallerAwareXMLStreamReader {
> void setUnmarshaller(Unmarshaller unmarshaller);
> }
> org.apache.cxf.jaxb.UnmarshallerAwareXMLStreamReader
> public interface MarshallerAwareXMLStreamWriter {
> void setMarshaller(Marshaller unmarshaller);
> }
> The org.apache.cxf.jaxb.JAXBEncoderDecoder will inject the (Un)marshaller
> into the Reader / Writer or if it implements the interface.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)