<div dir="ltr"><div>Interestingly there is no @Priority in Java SE 8 see that JavaDoc:</div><div><a href="http://docs.oracle.com/javase/8/docs/api/javax/annotation/package-summary.html">http://docs.oracle.com/javase/8/docs/api/javax/annotation/package-summary.html</a></div><div><br></div><div>Meaning we won't get that one via Java 8 anyway, and it shows, there could be flexibility to pick just the annotations you need for CDI 2 under the right circumstances, too<img style="margin: 0px 0.2ex; vertical-align: middle;" src="cid:347@goomoji.gmail" goomoji="347"><br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span style="font-family:arial,sans-serif">
<p style="margin:0px;font-size:13px;border-collapse:collapse"><span style="color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;border-collapse:separate;font-size-adjust:none;font-stretch:normal"><span style="font-family:Helvetica"><span style="font-family:Calibri;font-size:12px"></span></span></span></p>
<div><font face="Arial"><span style="font-family:arial,sans-serif">
<br></span></font></div></span><div><br></div></div></div><div class="gmail_quote">On Tue, Oct 28, 2014 at 12:43 PM, <span dir="ltr"><<a href="mailto:cdi-dev-request@lists.jboss.org" target="_blank">cdi-dev-request@lists.jboss.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">Send cdi-dev mailing list submissions to<br>
<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:cdi-dev-request@lists.jboss.org">cdi-dev-request@lists.jboss.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:cdi-dev-owner@lists.jboss.org">cdi-dev-owner@lists.jboss.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of cdi-dev digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: [VOTE] Using @Priority to order events instead of adding<br>
a parameter in @Observes (Werner Keil)<br>
2. Re: [VOTE] Using @Priority to order events instead of adding<br>
a parameter in @Observes (Pete Muir)<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 28 Oct 2014 11:43:31 +0000<br>
From: Pete Muir <<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>><br>
Subject: Re: [cdi-dev] [VOTE] Using @Priority to order events instead<br>
of adding a parameter in @Observes<br>
To: Werner Keil <<a href="mailto:werner.keil@gmail.com">werner.keil@gmail.com</a>><br>
Cc: cdi-dev <<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>><br>
Message-ID: <<a href="mailto:A2F18F27-2750-4C0C-8CF0-BD1E50227087@redhat.com">A2F18F27-2750-4C0C-8CF0-BD1E50227087@redhat.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
No, it is part of the JDK - check out the packages available in your IDE, or look at the Javadoc. <a href="http://docs.oracle.com/javase/8/docs/api/javax/annotation/package-summary.html" target="_blank">http://docs.oracle.com/javase/8/docs/api/javax/annotation/package-summary.html</a> <<a href="http://docs.oracle.com/javase/8/docs/api/javax/annotation/package-summary.html" target="_blank">http://docs.oracle.com/javase/8/docs/api/javax/annotation/package-summary.html</a>><br>
<br>
We can get an MR no problem, however it is critical IMO that this update makes it in the JDK in a timely fashion to avoid people having to use the endorsed dir to upgrade JSR-250 (Antoine mentioned you have to add it as a dependency, but it?s worse - you have to add it to the endorsed dir).<br>
<br>
> On 28 Oct 2014, at 11:40, Werner Keil <<a href="mailto:werner.keil@gmail.com">werner.keil@gmail.com</a>> wrote:<br>
><br>
> AFAIK that is not part of the JDK, thus it should make it easier to ask them for a MR, last happened about a year ago: <a href="https://jcp.org/en/jsr/detail?id=250" target="_blank">https://jcp.org/en/jsr/detail?id=250</a> <<a href="https://jcp.org/en/jsr/detail?id=250" target="_blank">https://jcp.org/en/jsr/detail?id=250</a>><br>
><br>
><br>
><br>
><br>
> On Tue, Oct 28, 2014 at 12:33 PM, Pete Muir <<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a> <mailto:<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>>> wrote:<br>
> I would be +1 if we can get a commitment to update the version of JSR-250 shipped in the JDK updated as well, otherwise -1<br>
><br>
>> On 28 Oct 2014, at 10:13, Werner Keil <<a href="mailto:werner.keil@gmail.com">werner.keil@gmail.com</a> <mailto:<a href="mailto:werner.keil@gmail.com">werner.keil@gmail.com</a>>> wrote:<br>
>><br>
>> +1 for 1)<br>
>><br>
>> Unlike @Inject the Maven JAR for JSR-250 is a bit bigger (~20kb) but there are existing dependencies that are not part of the JDK, most notably JSR-330.<br>
>><br>
>> Not sure, if subpackages like "security" or "sql" under 250 matter at all, if not, we could explore if the ideas for "stripping" libraries proposed by Oracle may also work for SE/EE. This was discussed by OpenJDK architects including Mark Reinhold with the EC. So far no real progress on that, but till this JSR goes final or EE 8 it could work to get dependencies a bit lighter, too.<br>
>><br>
>> It is likely, some annotation JSRs not just 250 need overhaul, e.g. to finally make use of JSR-308, so an MR for 250 could be cumbersome, but seems much easier here than e.g. bringing JSR-305 back to life;-)<br>
>><br>
>> Werner<br>
>><br>
>><br>
>> On Tue, Oct 28, 2014 at 9:58 AM, <<a href="mailto:cdi-dev-request@lists.jboss.org">cdi-dev-request@lists.jboss.org</a> <mailto:<a href="mailto:cdi-dev-request@lists.jboss.org">cdi-dev-request@lists.jboss.org</a>>> wrote:<br>
>> Send cdi-dev mailing list submissions to<br>
>> <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a> <mailto:<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>><br>
>><br>
>> To subscribe or unsubscribe via the World Wide Web, visit<br>
>> <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a> <<a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a>><br>
>> or, via email, send a message with subject or body 'help' to<br>
>> <a href="mailto:cdi-dev-request@lists.jboss.org">cdi-dev-request@lists.jboss.org</a> <mailto:<a href="mailto:cdi-dev-request@lists.jboss.org">cdi-dev-request@lists.jboss.org</a>><br>
>><br>
>> You can reach the person managing the list at<br>
>> <a href="mailto:cdi-dev-owner@lists.jboss.org">cdi-dev-owner@lists.jboss.org</a> <mailto:<a href="mailto:cdi-dev-owner@lists.jboss.org">cdi-dev-owner@lists.jboss.org</a>><br>
>><br>
>> When replying, please edit your Subject line so it is more specific<br>
>> than "Re: Contents of cdi-dev digest..."<br>
>><br>
>><br>
>> Today's Topics:<br>
>><br>
>> 1. Re: microbenchmark for CDI performance (Mohan Radhakrishnan)<br>
>> 2. [VOTE] Using @Priority to order events instead of adding a<br>
>> parameter in @Observes (Antoine Sabot-Durand)<br>
>> 3. No meeting tomorrow (Antoine Sabot-Durand)<br>
>> 4. Updated Invitation: CDI weekly meeting @ Weekly from 18:00 to<br>
>> 19:00 on Wednesday except Wed 1 Oct 18:00, Wed 15 Oct 18:00 or<br>
>> Wed 29 Oct 18:00 (ASD Perso) (<a href="mailto:antoine@sabot-durand.net">antoine@sabot-durand.net</a> <mailto:<a href="mailto:antoine@sabot-durand.net">antoine@sabot-durand.net</a>>)<br>
>><br>
>><br>
>> ----------------------------------------------------------------------<br>
>><br>
>> Message: 2<br>
>> Date: Tue, 28 Oct 2014 09:56:14 +0100<br>
>> From: Antoine Sabot-Durand <<a href="mailto:antoine@sabot-durand.net">antoine@sabot-durand.net</a> <mailto:<a href="mailto:antoine@sabot-durand.net">antoine@sabot-durand.net</a>>><br>
>> Subject: [cdi-dev] [VOTE] Using @Priority to order events instead of<br>
>> adding a parameter in @Observes<br>
>> To: cdi-dev <<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a> <mailto:<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>>><br>
>> Message-ID: <<a href="mailto:ECAAD9B3-649C-4856-BB24-82AB9EF41763@sabot-durand.net">ECAAD9B3-649C-4856-BB24-82AB9EF41763@sabot-durand.net</a> <mailto:<a href="mailto:ECAAD9B3-649C-4856-BB24-82AB9EF41763@sabot-durand.net">ECAAD9B3-649C-4856-BB24-82AB9EF41763@sabot-durand.net</a>>><br>
>> Content-Type: text/plain; charset=utf-8<br>
>><br>
>> To add events ordering feature we have two choices:<br>
>><br>
>> 1) Use @Priority from common annotation specification (JSR-250) (vote +1)<br>
>> pros:<br>
>> - more consistent with other ordering mechanism we already have in CDI (Interceptors, decorators, Alternatives)<br>
>> - more Java EE consistent<br>
>><br>
>> cons:<br>
>> - time consumed in JSR 250 MR participation (@Priority must be update to support parameter for target)<br>
>> - as @Priority is not part of Java SE, CDI light on java SE will have to add the jsr250 jar as dependency only to have this annotation (which will make it a little less light)<br>
>><br>
>> 2) Add a parameter to @Observes annotation to give order to an observer (vote -1)<br>
>> pros:<br>
>> - works out of the box (we can add this property without ask for other specs modification)<br>
>> - avoid two annotations to declare an ordered observer (simpler usage)<br>
>><br>
>> cons:<br>
>> - less Java EE spirit<br>
>> - could be seen as an inconsistency with the way we order Interceptors, Decorators and Alternatives.<br>
>><br>
>> ????????????????????<br>
>><br>
>> Who can vote? Everybody registered to this ML can vote. All votes will be binding<br>
>> How to vote? Answer this mail and vote +1 (for @Priority) 0 or -1(for parameter in @Observes)<br>
>> Vote will be closed in 72 hours<br>
>><br>
>> _______________________________________________<br>
>> cdi-dev mailing list<br>
>> <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a> <mailto:<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>><br>
>> <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a> <<a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a>><br>
>><br>
>> Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank">http://www.apache.org/licenses/LICENSE-2.0.html</a> <<a href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank">http://www.apache.org/licenses/LICENSE-2.0.html</a>>). 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>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.jboss.org/pipermail/cdi-dev/attachments/20141028/7a4d9ef6/attachment.html" target="_blank">http://lists.jboss.org/pipermail/cdi-dev/attachments/20141028/7a4d9ef6/attachment.html</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
cdi-dev mailing list<br>
<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
<br>
Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank">http://www.apache.org/licenses/LICENSE-2.0.html</a>). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.<br>
<br>
End of cdi-dev Digest, Vol 47, Issue 13<br>
***************************************<br>
</blockquote></div><br></div></div>