[cdi-dev] [JBoss JIRA] (CDI-695) Allow stereotypes to include priority annotations

Antoine Sabot-Durand (JIRA) issues at jboss.org
Tue Mar 7 05:18:00 EST 2017

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

Antoine Sabot-Durand commented on CDI-695:

IMO, I think it would bring more confusion than useful:

* A Stereotype is usually created to be used on many elements. What would be the interest to apply same priority in different places?
* {{@Priority}} is used and activate Interceptors and Alternatives and not having this info directly on the element can be source of confusion IMO.

Could you give a use case where it could be interesting to have this?  

> Allow stereotypes to include priority annotations
> -------------------------------------------------
>                 Key: CDI-695
>                 URL: https://issues.jboss.org/browse/CDI-695
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>            Reporter: John Ament
> Stereotypes can include things like Alternative.  However, there is no mention as to whether or not Priority can be included in the stereotype definition.  I feel it would be useful to be included.

This message was sent by Atlassian JIRA

More information about the cdi-dev mailing list