[cdi-dev] [JBoss JIRA] (CDI-588) Adding missing annotation Literals

Antoine Sabot-Durand (JIRA) issues at jboss.org
Thu Mar 17 06:30:00 EDT 2016

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

Antoine Sabot-Durand commented on CDI-588:

Well, {{javax.interceptor.Interceptor.Priority}} is not the annotation but the inner class to {{@Interceptor}} containing constants for priority.

The annotation {{javax.annotation.Priority}} is part of JSR 250 (commons annotations). Some of the annotations of this spec are present in SE put not {{@Priority}}. So yes, we'd have to had this spec as dependency to CDI if we want this literal.

IMO I think it's not worth it for the moment.

> Adding missing annotation Literals
> ----------------------------------
>                 Key: CDI-588
>                 URL: https://issues.jboss.org/browse/CDI-588
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>            Reporter: Antoine Sabot-Durand
>            Assignee: Martin Kouba
> We forgot literals for {{Inject}} and more questionably literals for:
> * {{Observes}}  and {{ObservesAsync}}
> * {{Produces}} and {{Disposes}} 
> * {{Specializes}}
> * {{TransientReference}}
> * {{Vetoed}}
> Most of these can be used to help defining a new AnnotatedType to be added to set of discovered types.

This message was sent by Atlassian JIRA

More information about the cdi-dev mailing list