[cdi-dev] Interceptor bindings from interceptor when using 2.0 interception factory

Martin Kouba mkouba at redhat.com
Fri Oct 13 07:35:02 EDT 2017


Dne 13.10.2017 v 13:09 arjan tijms napsal(a):
> Hi,
> 
> On Tue, Sep 19, 2017 at 2:22 PM, arjan tijms <arjan.tijms at gmail.com 
> <mailto:arjan.tijms at gmail.com>> wrote:
> 
>         No really. Weld stores the bindings also in context data but the
>         API is using a direct reference to a stored set.
> 
> 
> [...]
> 
> 
>         I don't think this is an InterceptionFactory-specific problem.
>         It's a general issue. It should work the same if you use an
>         extension to add an interceptor binding.
> 
> 
> So that would hold for Java EE 7 then as well. Last time I looked for 
> Weld 3, but is there also a way to get the interceptor bindings (in a 
> Weld specific way) from Weld 2? Say from a 
> TerminalAroundInvokeInvocationContext?

No, this is not possible in weld 2. Feel free to file a feature request 
to backport this.

> 
> Kind regards,
> Arjan Tijms
> 

-- 
Martin Kouba
Senior Software Engineer
Red Hat, Czech Republic


More information about the cdi-dev mailing list