You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2014/01/27 09:23:38 UTC

[jira] [Resolved] (CAMEL-6925) Provide an option on camel-jaxrs endpoint to allow injection of JAXRSServerFactory

     [ https://issues.apache.org/jira/browse/CAMEL-6925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-6925.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.11.3
                   2.12.2
                   2.13.0
         Assignee: Willem Jiang

It is more straightforward by setProviders in CXFRsEndpoint to let the user override the default setting of JAXRSServerFactory or JAXRSClientFactory CAMEL-6971.


> Provide an option on camel-jaxrs endpoint to allow injection of JAXRSServerFactory
> ----------------------------------------------------------------------------------
>
>                 Key: CAMEL-6925
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6925
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-cxf
>    Affects Versions: 2.12.1
>            Reporter: Joe Luo
>            Assignee: Willem Jiang
>             Fix For: 2.13.0, 2.12.2, 2.11.3
>
>
> There is an use case where we might want to inject a jaxrs provider and override provider properties in Java code just like what below Spring bean does:
> {code}
> <jaxrs:providers>
>             <bean class="org.apache.cxf.jaxrs.provider.json.JSONProvider">
>                 <property name="dropRootElement" value="true" />
>                 <property name="supportUnwrapped" value="true" />
>             </bean>
> </jaxrs:providers>
> {code}
> However, it requires to build a JAXRSServerFactory to inject the CXFRSEndpoint. But it is no way to inject JAXRSServerFactory myself. So we might need to provide an option on camel-jaxrs endpoint to allow injection of a JAXRSServerFactory instance.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)