[
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 Reader / Writer that can adjust it's behaviour
based on the state of the (Un)marshaller.
Add new interfaces
public interface UnmarshallerAwareXMLReader {
void setUnmarshaller(Unmarshaller unmarshaller);
}
public interface MarshallerAwareXMLWriter {
void setMarshaller(Marshaller unmarshaller);
}
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.
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.
Summary: Supporting (Un)marshaller aware XML Readers and Writers in
jaxb data binding (was: Supporting (Un)marshaller aware XML Stream Readers and
Writers in jaxb data binding)
> Supporting (Un)marshaller aware XML 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: 3.0.3, 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 Reader / Writer that can adjust it's
> behaviour based on the state of the (Un)marshaller.
> Add new interfaces
> public interface UnmarshallerAwareXMLReader {
> void setUnmarshaller(Unmarshaller unmarshaller);
> }
> public interface MarshallerAwareXMLWriter {
> void setMarshaller(Marshaller unmarshaller);
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)