jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: Interceptor Invocation and CDI

From: Bill Burke <bburke_at_redhat.com>
Date: Tue, 23 Oct 2012 15:54:31 -0400

I'd say no.

On 10/23/2012 3:08 PM, Jan Algermissen wrote:
> Hi,
>
> what is the desired behavior of a JAX-RS and CDI runtime when a message body reader or writer is injected using a CDI mechanism.
>
> For example, if using
>
> @Inject Instance<MessageBodyReader> mbrs;
>
> for(MessageBodyReader mbr : mbrs) {
> if(mbr.canRead( ... ) ) {
> someObject = mbr.readFrom( ... )
> }
> }
>
> is the expectation that any applicable JAX-RS interceptors are invoked?
>
> What about ordering/interference with CDI Interceptors?
>
> Jan
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com