[cdi-dev] [JBoss JIRA] (CDI-128) Ability to access CDI enhanced metadata from the InvocationContext.getMethod()

Antoine Sabot-Durand (JIRA) issues at jboss.org
Mon Jan 5 08:42:29 EST 2015


     [ https://issues.jboss.org/browse/CDI-128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Sabot-Durand updated CDI-128:
-------------------------------------
    Fix Version/s: 2.0 (discussion)
                       (was: TBD)


> Ability to access CDI enhanced metadata from the InvocationContext.getMethod()
> ------------------------------------------------------------------------------
>
>                 Key: CDI-128
>                 URL: https://issues.jboss.org/browse/CDI-128
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Interceptors
>    Affects Versions: 1.0
>            Reporter: Richard Hightower
>             Fix For: 2.0 (discussion)
>
>
> The issues with InvocationContext is it was designed before CDI as part of EJB 3. In CDI, the meta-data will likely exist in an annotation, but it could exist in an XML file (Candi, and Seam XML Extension for CDI). 
> For example, I am working on creating a standard interceptor for JCache 107. I can read the annotation from the getMethod of the InvocationContext, but if someone added the interception meta-data in an XML file, then it will not be available to InvocationContext.getMethod().getAnnotation(Cacheable.class). 
> I propose we have an extension interface that extends InvocationContext called CDIInvocationContext that has a getAnnotated. This way if someone annotates in an XML file, then it is available to implementors for interceptors.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the cdi-dev mailing list