<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 28 Oct 2014, at 10:13, Werner Keil <<a href="mailto:werner.keil@gmail.com" class="">werner.keil@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">+1 for 1)</div><div class=""><br class=""></div><div class="">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. </div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">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 class=""></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div dir="ltr" class=""><span style="font-family:arial,sans-serif" class=""><p style="margin:0px;font-size:13px;border-collapse:collapse" class=""><span style="text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; border-collapse: separate;" class=""><span style="font-family:Helvetica" class=""><span style="font-family:Calibri;font-size:12px" class=""></span></span></span></p>
<div class=""><font face="Arial" class=""><span style="font-family:arial,sans-serif" class=""><div style="margin: 0px; font-size: 13px; border-collapse: collapse;" class=""><span lang="EN-US" style="font-family:Calibri" class="">Werner</span></div></span><div style="margin: 0px; font-size: 13px; border-collapse: collapse;" class=""><br class=""></div></font><div style="margin: 0px; font-size: 13px; border-collapse: collapse;" class=""><br class=""></div></div></span></div></div><div class="gmail_quote">On Tue, Oct 28, 2014 at 9:58 AM, <span dir="ltr" class=""><<a href="mailto:cdi-dev-request@lists.jboss.org" target="_blank" class="">cdi-dev-request@lists.jboss.org</a>></span> wrote:<br class=""><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 class="">
<a href="mailto:cdi-dev@lists.jboss.org" class="">cdi-dev@lists.jboss.org</a><br class="">
<br class="">
To subscribe or unsubscribe via the World Wide Web, visit<br class="">
<a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank" class="">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br class="">
or, via email, send a message with subject or body 'help' to<br class="">
<a href="mailto:cdi-dev-request@lists.jboss.org" class="">cdi-dev-request@lists.jboss.org</a><br class="">
<br class="">
You can reach the person managing the list at<br class="">
<a href="mailto:cdi-dev-owner@lists.jboss.org" class="">cdi-dev-owner@lists.jboss.org</a><br class="">
<br class="">
When replying, please edit your Subject line so it is more specific<br class="">
than "Re: Contents of cdi-dev digest..."<br class="">
<br class="">
<br class="">
Today's Topics:<br class="">
<br class="">
1. Re: microbenchmark for CDI performance (Mohan Radhakrishnan)<br class="">
2. [VOTE] Using @Priority to order events instead of adding a<br class="">
parameter in @Observes (Antoine Sabot-Durand)<br class="">
3. No meeting tomorrow (Antoine Sabot-Durand)<br class="">
4. Updated Invitation: CDI weekly meeting @ Weekly from 18:00 to<br class="">
19:00 on Wednesday except Wed 1 Oct 18:00, Wed 15 Oct 18:00 or<br class="">
Wed 29 Oct 18:00 (ASD Perso) (<a href="mailto:antoine@sabot-durand.net" class="">antoine@sabot-durand.net</a>)<br class="">
<br class="">
<br class="">
----------------------------------------------------------------------<br class="">
<br class="">
Message: 2<br class="">
Date: Tue, 28 Oct 2014 09:56:14 +0100<br class="">
From: Antoine Sabot-Durand <<a href="mailto:antoine@sabot-durand.net" class="">antoine@sabot-durand.net</a>><br class="">
Subject: [cdi-dev] [VOTE] Using @Priority to order events instead of<br class="">
adding a parameter in @Observes<br class="">
To: cdi-dev <<a href="mailto:cdi-dev@lists.jboss.org" class="">cdi-dev@lists.jboss.org</a>><br class="">
Message-ID: <<a href="mailto:ECAAD9B3-649C-4856-BB24-82AB9EF41763@sabot-durand.net" class="">ECAAD9B3-649C-4856-BB24-82AB9EF41763@sabot-durand.net</a>><br class="">
Content-Type: text/plain; charset=utf-8<br class="">
<br class="">
To add events ordering feature we have two choices:<br class="">
<br class="">
1) Use @Priority from common annotation specification (JSR-250) (vote +1)<br class="">
pros:<br class="">
- more consistent with other ordering mechanism we already have in CDI (Interceptors, decorators, Alternatives)<br class="">
- more Java EE consistent<br class="">
<br class="">
cons:<br class="">
- time consumed in JSR 250 MR participation (@Priority must be update to support parameter for target)<br class="">
- 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 class="">
<br class="">
2) Add a parameter to @Observes annotation to give order to an observer (vote -1)<br class="">
pros:<br class="">
- works out of the box (we can add this property without ask for other specs modification)<br class="">
- avoid two annotations to declare an ordered observer (simpler usage)<br class="">
<br class="">
cons:<br class="">
- less Java EE spirit<br class="">
- could be seen as an inconsistency with the way we order Interceptors, Decorators and Alternatives.<br class="">
<br class="">
????????????????????<br class="">
<br class="">
Who can vote? Everybody registered to this ML can vote. All votes will be binding<br class="">
How to vote? Answer this mail and vote +1 (for @Priority) 0 or -1(for parameter in @Observes)<br class="">
Vote will be closed in 72 hours<br class="">
</blockquote></div><br class=""></div></div>
_______________________________________________<br class="">cdi-dev mailing list<br class=""><a href="mailto:cdi-dev@lists.jboss.org" class="">cdi-dev@lists.jboss.org</a><br class="">https://lists.jboss.org/mailman/listinfo/cdi-dev<br class=""><br class="">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.</div></blockquote></div><br class=""></div></body></html>