Sergey Beryozkin-5 wrote
> 
> Custom MessageBodyReaders and Writers can get a Providers context 
> injected and delegate to it to find the writer and reader which can 
> actually deal with the current payload. This is the only thing that the 
> custom provider will do, first ask the Providers instance to find a 
> reader and writer and then delegating to the found reader/writer
> 

I wrote a simple implementation of a MessageBodyReader that is annotated
with @Provider (no @Consumes) and has javax.ws.rs.ext.Providers injected
into it using @Context. I call providers.getMessageBodyReader(...) in my
implementation of readFrom with the parameters passed to my method, but
getMessageBodyReader returns my implementation.


--
View this message in context: 
http://cxf.547215.n5.nabble.com/JAX-RS-Convert-return-value-to-JAXB-annotated-element-for-transparent-marshalling-tp5447971p5448773.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to