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

Antonin Stefanutti (JIRA) issues at jboss.org
Wed Mar 9 06:57:00 EST 2016


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

Antonin Stefanutti commented on CDI-588:
----------------------------------------

I wonder whether that would make sense / be possible to provide literal for {{Priority}}.

I've just needed it here: https://github.com/apache/camel/blob/1b89ecd902cfce8b8a074580cfec084de8df582d/components/camel-test-cdi/src/main/java/org/apache/camel/test/cdi/PriorityLiteral.java#L22

The use case is to select an alternative globally for the entire application from a test synthetic bean archive and not having it selected for the test bean archive only with is useless.

> 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
>
> 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
(v6.4.11#64026)


More information about the cdi-dev mailing list