This content has been marked as final.
Show 3 replies
-
1. Re: Setting the default XmlJavaTypeAdapter for a class
aloubyansky Oct 12, 2007 2:56 AM (in response to starksm64)According to the spec:
"jaxb2 spec" wrote:
When @XmlJavaTypeAdapter annotation is defined at the package level it applies to all references from within the package to @XmlJavaTypeAdapter.type().
See http://java.sun.com/javaee/5/docs/api/javax/xml/bind/annotation/adapters/XmlJavaTypeAdapter.html
I am not sure whether we support this currently.
In XB, you can set ValueAdapter on TypeBinding which can be xsd:string. -
2. Re: Setting the default XmlJavaTypeAdapter for a class
a.gazzarini Dec 13, 2008 5:57 AM (in response to starksm64)I'm using JBoss 4.2.2 with JBossWS 3.0.4 and it seems that the @XMLJavaAdapter at package level is not working...is that expected or not?
I'm trying to insert @XmlJavaAdapters (with nested tags @XmlJavaAdapter) on package-info.java in order to isolate all those mappings in a one place...
Best regards,
Andrea -
3. Re: Setting the default XmlJavaTypeAdapter for a class
aloubyansky Dec 14, 2008 2:38 PM (in response to starksm64)I can tell JBossXB-1.0.0.SP1 which is included into the JBoss-4.2.2.GA release does not support that (even the latest XB doesn't but it does support a similar JBoss-specific annotation).
But JBossWS, I think, can use JAXB reference implementation instead. Try asking on the WS forum.