[cdi-dev] [JBoss JIRA] (CDI-404) adding bean-defining annotations for Interceptor while setting bean-discovery-mode="annotated"

Antoine Sabot-Durand (JIRA) issues at jboss.org
Wed Feb 26 09:18:48 EST 2014


    [ https://issues.jboss.org/browse/CDI-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12948374#comment-12948374 ] 

Antoine Sabot-Durand edited comment on CDI-404 at 2/26/14 9:17 AM:
-------------------------------------------------------------------

As CDI-377 is now focused on redefining list of bean defining annotations, I added it as a dependency of this ticket.
To avoid a new CDI-377, I checked that the 3 big frameworks implementing JSR-330 :

* Guice (and Maven3 new extension mechanism),
* Spring,
* Dagger,

don't implement Interceptor Spec as well.
So I can tell they don't use {{@Interceptor}} annotation so it is safe to add it to the list of bean defining annotations. There is no such problem regarding {{@Decorator}} since it's part of CDI spec.
I'll change PR 208 to include this ticket. 

                
      was (Author: antoinesabot-durand):
    As CDI-377 is now focused on redefining list of bean defining annotations, I added it as a dependency of this ticket.
To avoid a new CDI-377, I checked that the 3 big frameworks implementing JSR-330 :

* Guice (and Maven3 new extension mechanism),
* Spring,
* Dagger,

to be sure they don't implement Interceptor Spec as well.
So I can tell they don't use {{@Interceptor}} annotation so it is safe to add it to the list of bean defining annotations. There is no such problem regarding {{@Decorator}} since it's part of CDI spec.
I'll change PR 208 to include this ticket. 

                  
> adding  bean-defining annotations for Interceptor while setting bean-discovery-mode="annotated"
> -----------------------------------------------------------------------------------------------
>
>                 Key: CDI-404
>                 URL: https://issues.jboss.org/browse/CDI-404
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Beans
>    Affects Versions: 1.1.PFD
>            Reporter: Tang Yong
>            Assignee: Antoine Sabot-Durand
>              Labels: CDI_spec_chge, CDI_tck_chge
>             Fix For: 1.2 Proposed
>
>
> [1] and [2] has reported an issue about
> bean-discovery-mode="annotated". Although there are some workarounds for
> the issue, I think that in the future, we should support interceptor
> implict scanning while an user uses bean-discovery-mode="annotated".
> Apparently, just as bean-discovery-mode="annotated", CDI Spec and
> Interceptor Spec are disconnected.
> [1]:https://java.net/jira/browse/GLASSFISH-20667
> [2]:http://stackoverflow.com/questions/17258639/interceptor-issue-with-java-ee7
> About detailed discussion, please seeing the following,
> https://java.net/projects/javaee-spec/lists/users/archive/2013-09/message/7

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the cdi-dev mailing list