[cdi-dev] [JBoss JIRA] (CDI-320) Clarify whether ProcessAnnotatedType should be fired for annotations

Ron Šmeral (JIRA) jira-events at lists.jboss.org
Mon Feb 4 11:12:51 EST 2013


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

Ron Šmeral commented on CDI-320:
--------------------------------

I agree with your comments on CDI-269, but the current wording says: The container must fire an event, before it processes [...] Annotated type added by BeforeBeanDiscovery.addAnnotatedType(). 
I can do {{bbd.addAnnotatedType(AnnotatedType<Annotation>)}} and expect to have it processed, because the spec says that PAT will be fired for *each* AnnotatedType added in BBD.

                
> Clarify whether ProcessAnnotatedType should be fired for annotations
> --------------------------------------------------------------------
>
>                 Key: CDI-320
>                 URL: https://issues.jboss.org/browse/CDI-320
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Portable Extensions
>            Reporter: Ron Šmeral
>
> It should be stated clearly whether {{ProcessAnnotatedType}} should be fired for annotations.
> Currently, *11.5.6 ProcessAnnotatedType event* says:
> {quote}
> The container must fire an event, before it processes a type, for each:
> * Java class, interface or enum in a bean archive,
> {quote}
> The word "annotation" has been introduced into the above line and later reverted. 
> {quote}
> * Annotated type added by {{BeforeBeanDiscovery.addAnnotatedType()}},
> {quote}
> The wording used here, however, doesn't exclude the option of the annotated type being an Annotation.

--
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