users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Interceptors vs composite MBR and MBW

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Mon, 14 May 2012 21:39:17 +0100

Hi

Composite Message Body Readers and Writers are the ones that can use an
injected Providers interface to delegate to the 'real' readers or writers.

I can see that reader and writer interceptors can be useful additions.
However, IMHO, there needs to be a clear recommendation on when the
interceptors should be preferred to the composite MBR/MBW or vice versa.

At the moment I see the only limitation of composite MBRs & MBWs
compared to reader/writer interceptors is that the former has no a
standard mechanism for exchanging the properties with filters.

Is it what others see too ? Anything else that I've missed ?

Thanks, Sergey