On 08/05/13 10:45, Sergey Beryozkin wrote:
> Hi All,
>
> Are writer and reader interceptors invoked regardless if whether MBW or
> MBR is available for a given type ?
>
> For example, given a method like
>
> @POST
> public void postBook(Book book) {}
>
> are registered ReaderInterceptors run only if Book MessageBodyReader is
> available or they run no matter what, and then, after the last
> registered reader is finished, the MBR selection begins ?
>
> I'm still under the impression that the interceptors are run only if MBW
> or MBR has been already selected, still checking the archives. The spec
> is not exactly clear on that.
Found this response from Marek:
https://java.net/projects/jax-rs-spec/lists/jsr339-experts/archive/2012-09/message/137
So I guess that still stands, in the above example we will only invoke
registered interceptors if MBW or MBR is available
Sergey
>
> Can someone clarify please ?
>
> Thanks, Sergey