[webbeans-dev] @NormalScope and @Singleton

Pete Muir pmuir at redhat.com
Thu Aug 20 07:00:37 EDT 2009


This sentence clearly needs fixing though

6.3, 20090812 - "All pseudo-scopes must be explicitly declared  
@NormalScope, to indicate to the container that no client proxy is  
required."

On 20 Aug 2009, at 04:15, Gavin King wrote:

> Actually @Singleton is a pseudo-scope, since it doesn't satisfy some
> of the properties that 299 demands of normal scopes.
>
> On Wed, Aug 19, 2009 at 7:37 PM, Mark Struberg<struberg at yahoo.de>  
> wrote:
>> Hi!
>>
>> I'm a bit confused about the description of the pseudo scopes in  
>> the latest spec (but it's really late here, so I might missed the  
>> point)
>>
>> a) ch 6.3:
>>> Any scope that is not a normal scope is called a pseudo-scope.
>>  -> @Singleton  [1] is per se only @Scope but not @NormalScope,
>>> The concept of a current instance is not well-defined in the case  
>>> of a pseudo-scope.
>>  -> but instances of @Singleton are pretty well defined, isn't?
>>
>> Maybe we should introduce @Passivating and @PseudoScope instead of  
>> @NormalScope and invert the logic?
>>
>> b) ch 6.3
>>> All pseudo-scopes must be explicitly declared @NormalScope,
>>> to indicate to the container that no client proxy is required.
>> vs ch 5.5
>>> A contextual reference to a bean with a normal scope ...
>>> ..not a direct reference...
>>> Instead, the contextual reference is a client proxy object.
>>
>> I'd say pseudo scopes must _not_ declare @NormalScope?
>>
>> txs and LieGrue,
>> strub
>>
>> [1] http://atinject.googlecode.com/svn/trunk/javadoc/javax/inject/Singleton.html
>>
>>
>>
>>
>> _______________________________________________
>> webbeans-dev mailing list
>> webbeans-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>>
>
>
>
> -- 
> Gavin King
> gavin.king at gmail.com
> http://in.relation.to/Bloggers/Gavin
> http://hibernate.org
> http://seamframework.org
>
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev




More information about the weld-dev mailing list