users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Interceptor Invocation and CDI

From: Jan Algermissen <jan.algermissen_at_nordsc.com>
Date: Tue, 23 Oct 2012 21:08:45 +0200

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