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

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

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Thu, 25 Oct 2012 11:13:41 +0200

+1

Marek

On Oct 24, 2012, at 3:48 PM, Bill Burke <bburke_at_redhat.com> wrote:

> Interceptors shouldn't be run for MBR/MBW returned from Providers. There are many cases where you only want to marshall/unmarshal. For example, we use Providers to marshall/unmarshal multipart/signed application/pkcs7-signature, application/pkcs7-encrypted, etc.
>
> On 10/24/2012 6:29 AM, Jan Algermissen wrote:
>>
>> On Oct 24, 2012, at 10:11 AM, Jan Algermissen <jan.algermissen_at_nordsc.com> wrote:
>>
>>>> JAX-RS entity interceptors are not method interceptors, they are part of the JAX-RS processing pipeline. For method interceptors, use CDI.
>>>
>>> Does that apply to injection vie @Context Providers.. , too? Is ist also desired behavior that interceptors are also not called when JAX-RS injection is used?
>>
>> FYI:
>>
>> Just tried in latest Glassfish.
>>
>> The interceptors are not invoked.
>>
>> Jan
>>
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com