<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">&nbsp;<br>
MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN<br>
Phone: &nbsp;+44 (0)1962 816278 &nbsp;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: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Martin Kouba &lt;mkouba@redhat.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Antoine Sabot-Durand
&lt;antoine@sabot-durand.net&gt;, CDI Java EE Specification &lt;cdi-dev@lists.jboss.org&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">28/11/2016 12:10</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</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: &nbsp; &nbsp;
&nbsp; &nbsp;</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>
&gt; Hi all,<br>
&gt;<br>
&gt; In a recent discussion with Martin, I realized that the use of @Priotiy<br>
&gt; is not consistent in CDI 1.2:<br>
&gt;<br>
&gt; - For Interceptor and decorator the lowest value in @Priority is first<br>
&gt; (def in interceptor spec and 8.2.1)<br>
&gt; - For Alternatives the Highest value in @Priroty is first (def in
5.2.2)<br>
&gt;<br>
&gt; Since we have these different interpretation of @Priority value in
the<br>
&gt; spec , we may find more consistent to change the definition of event<br>
&gt; ordering with the @Priority annotation.<br>
&gt; Right now we have:<br>
&gt;<br>
&gt; &quot;Observers with smaller priority values are called first&quot;<br>
&gt;<br>
&gt; We may find more intuitive to change it to:<br>
&gt;<br>
&gt; &quot;Observers with higher priority values are called first&quot;<br>
<br>
I believe this one makes much more sense...<br>
+1<br>
<br>
&gt;<br>
&gt; It will remove the oxymoron effect of the sentence and align this<br>
&gt; ordering on @Alternative way of using @Priorty.<br>
&gt;<br>
&gt; Wdyt?<br>
&gt;<br>
&gt; Antoine<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; cdi-dev mailing list<br>
&gt; cdi-dev@lists.jboss.org<br>
&gt; </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>
&gt;<br>
&gt; 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>
&gt;<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>