Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

EclipseLink/Development/359251

Design Documentation: JAXB Extensions

ER 355766

In the current JAXB RI, developed by Sun, there are a series of "proprietary" JAXB extensions that are available to provide advanced JAXB functionality outside of the JAXB spec (these extension classes reside in the com.sun.xml.bind package).

This page will track the various JAXB Extensions that we want to bring into MOXy.

XmlLocation

NamespacePrefixMapper

  • Allows the user to customize the namespace prefixes that are generated
  • Could create our own NamespacePrefixMapper that users could subclass
  • Custom Mapper would be provided via Marshaller properties

IDResolver

OverrideAnnotationOf

  • Allows for more flexible mapping (?)
  • Doesn't work if the field to override is not named "content", customization doesn't work (RI)

AccessorFactory

  • Added for the benefit of Hibernate users
  • Difficult to implement, no documentation, can be replaced by @XmlJavaTypeAdapter

Locatable

  • Seems to be mainly used internally by the RI
  • Interface only defines get methods... is user resonsible for setting up com.sun.xml.bind.v2.runtime.Location objects? Is this even meant to be a user-feature?

XmlIsSet

  • Doesn't work in RI
  • Deprecated in the RI, no need to implement since we have XmlIsSetNullPolicy?

CycleRecoverable

  • Can't get it to work in RI or Metro!

Back to the top