[cdi-dev] Consistency across specs with the use of @Priority

Romain Manni-Bucau rmannibucau at gmail.com
Mon Oct 23 01:10:46 EDT 2017


>From what I recall it is not the same for interceptors and decorators too.
More about the chain vision and what is the "0" from my understanding.

Le 23 oct. 2017 03:55, "John Ament" <john.ament at spartasystems.com> a écrit :

> I found this interesting to say the least.  In CDI, we use highest
> priority where the value of the @Priority annotation is compared the higher
> numeric value is considered higher priority.  We followed suite so far in
> MicroProfile specs.  I'm not looking to throw dirt, but wanted to get a
> general opinion from others on this.  The JAX-RS treats the lower numeric
> value as more important (in mathematical terms, it's being treated as the
> denominator).
>
>
> > If two or more providers are candidates for a certain task, the one
> with the highest priority is chosen: the highest priority is defined to be
> the one with the lowest value in this case. That is, @Priority(1) is
> higher than @Priority(10).
>
> So I'm wondering, why did CDI use the approach that CDI is using?
>
>
> John
>
>
> ------------------------------
> NOTICE: This e-mail message and any attachments may contain confidential,
> proprietary, and/or privileged information which should be treated
> accordingly. If you are not the intended recipient, please notify the
> sender immediately by return e-mail, delete this message, and destroy all
> physical and electronic copies. Thank you.
>
> _______________________________________________
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev
>
> Note that for all code provided on this list, the provider licenses the
> code under the Apache License, Version 2 (http://www.apache.org/
> licenses/LICENSE-2.0.html). For all other ideas provided on this list,
> the provider waives all patent and other intellectual property rights
> inherent in such information.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/cdi-dev/attachments/20171023/634f2fc8/attachment.html 


More information about the cdi-dev mailing list