Details
Description
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:
<jaxrs:providers> <bean class="org.apache.cxf.jaxrs.provider.json.JSONProvider"> <property name="dropRootElement" value="true" /> <property name="supportUnwrapped" value="true" /> </bean> </jaxrs:providers>
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.