Hi

You can register it as a JAX-RS provider, in jaxrs:server/jaxrs:providers, though I'm presuming
you should implement

https://jax-rs-spec.java.net/nonav/2.0-rev-a/apidocs/javax/ws/rs/container/DynamicFeature.html

To be honest I'm actually not sure if 'Feature', as opposed to 'DynamicFeature' can be registered directly with a server, as opposed to a client. DynamicFeature is definitely supported but need to double check about Feature

Perhaps you can implement MessageBodyWriter and may be MessageBodyReader instead, most likely you'd need to do it anyway, so rather than wrapping it all in a feature, simply implement MBR/MBW and register them.

Cheers, Sergey

On 30/10/15 15:31, Sharif Ghazzawi wrote:
All,


I currently have an Apache CXF application into which I am trying to integrate 
this library http://katharsis.io/ for the purposes of serializing objects into 
json-api compliant payloads.



The documentation here http://katharsis.io/#jax-rs states that it can be 
integrated with jax-rs environments by registering an implementation of 
javax.ws.rs.Feature with the jax-rs environment.


I have been reading through the Apache CXF documentation and have not been able 
to find anything explaining how to register an instance of javax.ws.rs.Feature.


Does anyone have any insights as to how this can be accomplished?


Thank you,


Sharif Ghazzawi





--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Reply via email to