[ 
https://issues.apache.org/jira/browse/OWB-1217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16203566#comment-16203566
 ] 

Romain Manni-Bucau commented on OWB-1217:
-----------------------------------------

Both are not true:

- what is important is the annotated type and not the method.annotations
- interception factory doesnt have to pass actual annotation members for not 
binding members

First one leads to using an extension, second one to let the factory enclosing 
class set the right context.

Decorating the injected interceptor can be an elegant solution but cdi has 
already all we need then no?

> Store interceptor binding annotations in ContextData
> ----------------------------------------------------
>
>                 Key: OWB-1217
>                 URL: https://issues.apache.org/jira/browse/OWB-1217
>             Project: OpenWebBeans
>          Issue Type: New Feature
>          Components: Interceptor and Decorators
>    Affects Versions: 2.0.1
>            Reporter: Arjan Tijms
>
> Unfortunately CDI doesn't give us an easy way to obtain the interceptor 
> binding annotations from an interceptor call. See 
> https://issues.jboss.org/browse/CDI-468
> Weld has a workaround for this that can be used until there's an actual spec 
> compliant solution:
> {code:java}
> Set<Annotation> bindings = (Set<Annotation>) 
> invocationContext.getContextData().get("org.jboss.weld.interceptor.bindings");
> {code}
> It would be great if OWB could do the same.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to