[cdi-dev] @New deprecation: when will be "real"

Antoine Sabot-Durand antoine at sabot-durand.net
Tue Mar 11 09:46:18 EDT 2014

Hi Luc,

> I've been using CDI-1.0 for a long time, and one of the features used in my project is @New qualifier.
> A few weeks ago I migrated to CDI-1.1, but was principal for performance promises than features. I didn't found anything really different (except extensions), so you all woked relly good with the backward compatiblity :)

I can assure you that there new things in CDI 1.1 ;). Anyway thanks for the feedback, I’m sure people that worked hard on 1.1 will appreciate.

> But today, I got to the @New section of docs, where it is told that the annotation is deprecated.
> It is planed in which release will be deleted the annotation, and its associated functionality? Or not yet?

Nothing planned for @New withdrawal but you should be ready for its removal in CDI 2.0.
Anyway, it’s rather easy to with to @Dependent bean to avoid the usage of @New. And if you really need it, it’s quite easy to create tour own extension that register a the @New version of each of your beans.

Antoine Sabot-Durand
Twitter : @antoine_sd
CDI co-spec lead & eco-system development
Agorava tech lead

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/cdi-dev/attachments/20140311/b39a7c64/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://lists.jboss.org/pipermail/cdi-dev/attachments/20140311/b39a7c64/attachment.bin 

More information about the cdi-dev mailing list