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

Pete Muir pmuir at redhat.com
Tue Mar 11 10:32:11 EDT 2014


@New will never be removed, the deprecated status is just to indicate you shouldn’t use it.

On 11 Mar 2014, at 13:46, Antoine Sabot-Durand <antoine at sabot-durand.net> wrote:

> 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
> 
> _______________________________________________
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev




More information about the cdi-dev mailing list