|
From: Ryan J. M. <ry...@da...> - 2008-07-21 12:06:04
|
I just opened: https://jira.jboss.org/jira/browse/RESTEASY-82 Currently, our JAXBProvider does not handle classed which are generated from an existing XML Schema by XJC. To resolve this, I have refactored the JAXBProvider into a number of more specialized providers: JAXBContextCache: A shared class for all JAXB providers to cache the various JAXBContexts in use JAXBXmlRootEntityProvider : basically the same as our current JAXBProvider JAXBXmlTypeProvider: Generated classes won't have the @XmlRootEntity annotation on them and therefore will be ignored. JAXBElementProvider: A JAXB provider for JAXBElement classes. With the number of classes here, I'm considering creating a jaxb subpackage under: org.jboss.resteasy.plugins.providers Thoughts? I have already got most of this done and will be committing changes by next Monday. Please let me know if you see any issues with these changes. On a related note; we may also want to consider similar changes for the JSON providers as well as this issue will affect this provider also. Ryan- |