[cdi-dev] [JBoss JIRA] (CDI-546) Constant for default observer priority

Martin Kouba (JIRA) issues at jboss.org
Thu Mar 24 09:17:00 EDT 2016


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

Martin Kouba commented on CDI-546:
----------------------------------

I believe we should place the constant on the {{javax.enterprise.inject.spi.ObserverMethod}}.

> Constant for default observer priority
> --------------------------------------
>
>                 Key: CDI-546
>                 URL: https://issues.jboss.org/browse/CDI-546
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>            Reporter: Jozef Hartinger
>            Priority: Minor
>             Fix For: 2.0 (discussion)
>
>
> Currently we use:
> {code:JAVA}
>     @Override
>     public default int getPriority() {
>         return javax.interceptor.Interceptor.Priority.APPLICATION + 500;
>     };
> {code}
> It would be nice to have the value stored as a constant e.g.:
> {code:JAVA}
> int DEFAULT_PRIORITY=javax.interceptor.Interceptor.Priority.APPLICATION + 500;
> {code}
> so that other code can reference it.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the cdi-dev mailing list