<font size=2 face="sans-serif">I think differently. For Alternatives,
the Alternative with the highest value is picked, while the others are
ignored. There is no so much invoked sequentially. </font>
<br>
<br><font size=2 face="sans-serif">However, for interceptors/decorators/events,
they are chained. Therefore, I think events should follow the same fashion
as interceptors/decorators, which is to follow the ascending order.</font>
<br>
<br><font size=2 face="sans-serif">Many thanks,<br>
Emily<br>
===========================<br>
Emily Jiang<br>
WebSphere Application Server, CDI Development Lead</font>
<br><font size=2 face="sans-serif"> <br>
MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN<br>
Phone: +44 (0)1962 816278 Internal: 246278<br>
<br>
Email: emijiang@uk.ibm.com <br>
Lotus Notes: Emily Jiang/UK/IBM@IBMGB<br>
</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:
</font><font size=1 face="sans-serif">Martin Kouba <mkouba@redhat.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">Antoine Sabot-Durand
<antoine@sabot-durand.net>, CDI Java EE Specification <cdi-dev@lists.jboss.org></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">28/11/2016 12:10</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">Re: [cdi-dev]
Defining the order of event thru priority</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by:
</font><font size=1 face="sans-serif">cdi-dev-bounces@lists.jboss.org</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Dne 28.11.2016 v 11:43 Antoine Sabot-Durand napsal(a):<br>
> Hi all,<br>
><br>
> In a recent discussion with Martin, I realized that the use of @Priotiy<br>
> is not consistent in CDI 1.2:<br>
><br>
> - For Interceptor and decorator the lowest value in @Priority is first<br>
> (def in interceptor spec and 8.2.1)<br>
> - For Alternatives the Highest value in @Priroty is first (def in
5.2.2)<br>
><br>
> Since we have these different interpretation of @Priority value in
the<br>
> spec , we may find more consistent to change the definition of event<br>
> ordering with the @Priority annotation.<br>
> Right now we have:<br>
><br>
> "Observers with smaller priority values are called first"<br>
><br>
> We may find more intuitive to change it to:<br>
><br>
> "Observers with higher priority values are called first"<br>
<br>
I believe this one makes much more sense...<br>
+1<br>
<br>
><br>
> It will remove the oxymoron effect of the sentence and align this<br>
> ordering on @Alternative way of using @Priorty.<br>
><br>
> Wdyt?<br>
><br>
> Antoine<br>
><br>
><br>
> _______________________________________________<br>
> cdi-dev mailing list<br>
> cdi-dev@lists.jboss.org<br>
> </font></tt><a href="https://lists.jboss.org/mailman/listinfo/cdi-dev"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/cdi-dev</font></tt></a><tt><font size=2><br>
><br>
> Note that for all code provided on this list, the provider licenses
the code under the Apache License, Version 2 (</font></tt><a href="http://www.apache.org/licenses/LICENSE-2.0.html"><tt><font size=2>http://www.apache.org/licenses/LICENSE-2.0.html</font></tt></a><tt><font size=2>).
For all other ideas provided on this list, the provider waives all patent
and other intellectual property rights inherent in such information.<br>
><br>
<br>
-- <br>
Martin Kouba<br>
Software Engineer<br>
Red Hat, Czech Republic<br>
_______________________________________________<br>
cdi-dev mailing list<br>
cdi-dev@lists.jboss.org<br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/cdi-dev"><tt><font size=2>https://lists.jboss.org/mailman/listinfo/cdi-dev</font></tt></a><tt><font size=2><br>
<br>
Note that for all code provided on this list, the provider licenses the
code under the Apache License, Version 2 (</font></tt><a href="http://www.apache.org/licenses/LICENSE-2.0.html"><tt><font size=2>http://www.apache.org/licenses/LICENSE-2.0.html</font></tt></a><tt><font size=2>).
For all other ideas provided on this list, the provider waives all patent
and other intellectual property rights inherent in such information.<br>
<br>
</font></tt>
<br><font size=2 face="sans-serif"><br>
Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number
741598. <br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU<br>
</font>