[
https://jira.jboss.org/jira/browse/JBWS-2852?page=com.atlassian.jira.plug...
]
Stefan Fussenegger commented on JBWS-2852:
------------------------------------------
Here is a list of currently supported and unsupported annotations:
package javax.xml.bind.annotation
supported:
@XmlAccessorType
@XmlAtribute
@XmlElement
@XmlElementWrapper
@XmlID
@XmlIDREF
@XmlRootElement
@XmlTransient
@XmlType
@XmlValue
unsupported:
@XmlAccessorOrder
@XmlAnyAttribute
@XmlAnyElement
@XmlAttachmentRef
@XmlElementDecl
@XmlElementRef
@XmlElementRefs
@XmlElements
@XmlEnum
@XmlEnumValue
@XmlInlineBinaryData
@XmlList
@XmlMimeType
@XmlMixed
@XmlNs
@XmlRegistry
@XmlSchema
@XmlSchemaType
@XmlSchemaTypes
@XmlSeeAlso
package javax.xml.bind.annotation.adapters
supported:
@XmlJavaTypeAdapter
unsupported:
@XmlJavaTypeAdapters
Adding support for additional annotations consists of 4 steps:
1. add new type to xml schema (src/main/resources/jaxb-intros.xsd)
2. add newly created type to allowed children of types "Class" and/or
class-member-intro-config - depending on where the annotation is allowed
(src/main/resources/jaxb-intros.xsd)
2. add binding to bindings file (jaxb-bindings.xjb)
3. add annotation.class to sets AVAILABLE_CLASS_ANNOTATIONS and/or
AVAILABLE_MEMBER_ANNOTATIONS - depending on where the annotation is allowed
(org.jboss.jaxb.intros.IntroductionsAnnotationReader.java)
However, as adding more annotations mainly consists of copy-pasting code of other types,
it might be worthwhile if some "expert" (which I'm not) could have a look at
http://anonsvn.jboss.org/repos/jbossws/projects/jaxbintros/trunk/jaxb-bin... and
http://anonsvn.jboss.org/repos/jbossws/projects/jaxbintros/trunk/src/main...
-, as I think that especially the later could possibly be simplified.
JAXBIntroductions: support missing annotations
----------------------------------------------
Key: JBWS-2852
URL:
https://jira.jboss.org/jira/browse/JBWS-2852
Project: JBoss Web Services
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: jbossws-cxf, jbossws-native
Reporter: Alessio Soldano
Add support for missing annotations; patch for @XmlValue (to be verified) attached in
linked JBWS-2751 issue.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira