Werner
Send cdi-dev mailing list submissions to
cdi-dev@lists.jboss.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.jboss.org/mailman/listinfo/cdi-dev
or, via email, send a message with subject or body 'help' to
cdi-dev-request@lists.jboss.org
You can reach the person managing the list at
cdi-dev-owner@lists.jboss.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of cdi-dev digest..."
Today's Topics:
1. Re: microbenchmark for CDI performance (Mohan Radhakrishnan)
2. [VOTE] Using @Priority to order events instead of adding a
parameter in @Observes (Antoine Sabot-Durand)
3. No meeting tomorrow (Antoine Sabot-Durand)
4. Updated Invitation: CDI weekly meeting @ Weekly from 18:00 to
19:00 on Wednesday except Wed 1 Oct 18:00, Wed 15 Oct 18:00 or
Wed 29 Oct 18:00 (ASD Perso) (antoine@sabot-durand.net)
----------------------------------------------------------------------
Message: 2
Date: Tue, 28 Oct 2014 09:56:14 +0100
From: Antoine Sabot-Durand <antoine@sabot-durand.net>
Subject: [cdi-dev] [VOTE] Using @Priority to order events instead of
adding a parameter in @Observes
To: cdi-dev <cdi-dev@lists.jboss.org>
Message-ID: <ECAAD9B3-649C-4856-BB24-82AB9EF41763@sabot-durand.net>
Content-Type: text/plain; charset=utf-8
To add events ordering feature we have two choices:
1) Use @Priority from common annotation specification (JSR-250) (vote +1)
pros:
- more consistent with other ordering mechanism we already have in CDI (Interceptors, decorators, Alternatives)
- more Java EE consistent
cons:
- time consumed in JSR 250 MR participation (@Priority must be update to support parameter for target)
- 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)
2) Add a parameter to @Observes annotation to give order to an observer (vote -1)
pros:
- works out of the box (we can add this property without ask for other specs modification)
- avoid two annotations to declare an ordered observer (simpler usage)
cons:
- less Java EE spirit
- could be seen as an inconsistency with the way we order Interceptors, Decorators and Alternatives.
????????????????????
Who can vote? Everybody registered to this ML can vote. All votes will be binding
How to vote? Answer this mail and vote +1 (for @Priority) 0 or -1(for parameter in @Observes)
Vote will be closed in 72 hours