David J. M. Karlsen created CXF-6924:
----------------------------------------
Summary: Provide XmlAdapter alternatives to
org.apache.cxf.xjc.runtime.DataTypeAdapter
Key: CXF-6924
URL: https://issues.apache.org/jira/browse/CXF-6924
Project: CXF
Issue Type: Improvement
Components: JAXB Databinding
Reporter: David J. M. Karlsen
It would be nice to have XmlAdapter versions of the DataTypeAdapter
https://docs.oracle.com/javase/8/docs/api/javax/xml/bind/annotation/adapters/XmlAdapter.html
The reason for this is that when referencing static methods (e.g. using
DataTypeAdapter directly) in binding files this generates adapters (and
typically into the package:
org/w3/_2001/xmlschema/
named Adapter1, Adapter2 etc
which is a ticking bomb when having several different generations with jaxb in
an application. Using XmlAdapters will simply refer to the implementing class,
thus avoiding generation of code in the 1st place, and secondly avoid
overlapping classnames when generating in different modules.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)