[cdi-dev] How to process the scope in JEE7
arne.limburg at openknowledge.de
Thu May 17 04:36:53 EDT 2012
You can bridge the JSR330 @Singleton scope via a CDI Extension.
MyFaces Codi already does so for the JSF Scopes.
In a CDI Extension you simply can replace the @Singleton annotation with the @ApplicationScoped annotation.
Von: cdi-dev-bounces at lists.jboss.org [mailto:cdi-dev-bounces at lists.jboss.org] Im Auftrag von Hantsy Bai
Gesendet: Mittwoch, 16. Mai 2012 08:04
An: Mark Struberg
Cc: cdi-dev at lists.jboss.org
Betreff: Re: [cdi-dev] How to process the scope in JEE7
Spring provide a resolver to bridge JSR 330 Scope to Spring scope.
Is there some solution like this in CDI spec? As a developer, I dislike so much duplication and incompatibility in the future JEE 7...I have got pain when use JSF2 and CDI in JEE6/Seam3.
I hope there are some solutions to unite them in CDI, deprecate JSR330 scope and bridge it to CDI for compatibility.
On 5/15/2012 17:49, Mark Struberg wrote:
> My personal view/prediction:
> * JSR-330 is fine as is. A few things like @Singleton and @Scope are completely useless though because they are completely underspecified. Other parts are really fine and we will continue to use it.
> * all the EE @ManagedBean and state management should imo get deprecated in EE7. This stuff is a.) technically broken and b.) not the right place. Imo it was purely the result of political games...
> ----- Original Message -----
>> From: Hantsy Bai<hantsy at gmail.com>
>> To: cdi-dev at lists.jboss.org
>> Sent: Tuesday, May 15, 2012 7:56 AM
>> Subject: [cdi-dev] How to process the scope in JEE7
>> CDI introduced NormalScope to create custom scope, I noticed there is
>> another similar one in the JSR330, @Scope(and @Singleton)
>> annotation, and there is also another "State management" standalone spec in JEE7.
>> Is there some cooperation with them in JEE7? and what is the
>> successor of JSR 330 in JEE7?
>> cdi-dev mailing list
>> cdi-dev at lists.jboss.org
cdi-dev mailing list
cdi-dev at lists.jboss.org
More information about the cdi-dev