You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Ivan Vitoria (JIRA)" <ji...@apache.org> on 2010/11/29 11:47:38 UTC
[jira] Created: (CXF-3154) Add extraClass property to
JAXBElementProvider in order to avoid @XmlSeeAlso annotations
Add extraClass property to JAXBElementProvider in order to avoid @XmlSeeAlso annotations
----------------------------------------------------------------------------------------
Key: CXF-3154
URL: https://issues.apache.org/jira/browse/CXF-3154
Project: CXF
Issue Type: Improvement
Components: JAX-RS
Affects Versions: 2.2.11
Environment: Spring 3, Apache CXF, JAXB
Reporter: Ivan Vitoria
As Sergey suggested to me through mailing list, it would be appreciate if JAXBElementProvider had the extraClass property, which currently belongs to JAXBDataBinding, because it is quite interesting in order to avoid the annotation @XmlSeeAlso in inheritance scenery.
Thanks,
Ivan
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-3154) Add extraClass property to
JAXBElementProvider in order to avoid @XmlSeeAlso annotations
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12964724#action_12964724 ]
Sergey Beryozkin commented on CXF-3154:
---------------------------------------
Hi Ivan - thanks for opening this issue. It will take me awhile to fix it, will try to do for 2.4.0/2.3.2.
But you should definitely be able to avoid adding XmlAlso if you add a custom ObjectFactory class. Copy some existing ObjectFactory, ex, there's a custom factory in jaxrs frontend unit tests...
cheers, Sergey
> Add extraClass property to JAXBElementProvider in order to avoid @XmlSeeAlso annotations
> ----------------------------------------------------------------------------------------
>
> Key: CXF-3154
> URL: https://issues.apache.org/jira/browse/CXF-3154
> Project: CXF
> Issue Type: Improvement
> Components: JAX-RS
> Affects Versions: 2.2.11
> Environment: Spring 3, Apache CXF, JAXB
> Reporter: Ivan Vitoria
>
> As Sergey suggested to me through mailing list, it would be appreciate if JAXBElementProvider had the extraClass property, which currently belongs to JAXBDataBinding, because it is quite interesting in order to avoid the annotation @XmlSeeAlso in inheritance scenery.
> Thanks,
> Ivan
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-3154) Add extraClass property to
JAXBElementProvider in order to avoid @XmlSeeAlso annotations
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-3154.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.4
2.3.2
Assignee: Sergey Beryozkin
Example :
<bean id="jaxb" class="org.apache.cxf.jaxrs.provider.JAXBElementProvider">
<property name="singleJaxbContext" value="true"/>
<property name="extraClass">
<list>
<value>org.apache.cxf.jaxrs.resources.SuperBook</value>
<value>org.apache.cxf.jaxrs.resources.SuperBook2</value>
</list>
</property>
</bean>
> Add extraClass property to JAXBElementProvider in order to avoid @XmlSeeAlso annotations
> ----------------------------------------------------------------------------------------
>
> Key: CXF-3154
> URL: https://issues.apache.org/jira/browse/CXF-3154
> Project: CXF
> Issue Type: Improvement
> Components: JAX-RS
> Affects Versions: 2.2.11
> Environment: Spring 3, Apache CXF, JAXB
> Reporter: Ivan Vitoria
> Assignee: Sergey Beryozkin
> Fix For: 2.3.2, 2.4
>
>
> As Sergey suggested to me through mailing list, it would be appreciate if JAXBElementProvider had the extraClass property, which currently belongs to JAXBDataBinding, because it is quite interesting in order to avoid the annotation @XmlSeeAlso in inheritance scenery.
> Thanks,
> Ivan
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.