Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6924

Provide XmlAdapter alternatives to org.apache.cxf.xjc.runtime.DataTypeAdapter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • JAXB Databinding
    • None
    • Unknown

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            davidkarlsen David J. M. Karlsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: