Actually @Singleton is a pseudo-scope, since it doesn't satisfy
some
of the properties that 299 demands of normal scopes.
Sorry to ask this, but what other demands of a 'Normal Scope' are not fulfilled
for @Singleton?
It's instances are pretty well defined for the singleton context, so it's not a
pseudo scope in terms of the spec.
Proxying?
For me the @Singleton looks pretty similiar to @ApplicationScoped. Where are the
differences?
txs and LieGrue,
strub
----- Original Message ----
From: Gavin King <gavin.king(a)gmail.com>
To: Pete Muir <pmuir(a)redhat.com>
Cc: Mark Struberg <struberg(a)yahoo.de>; "webbeans-dev(a)lists.jboss.org"
<webbeans-dev(a)lists.jboss.org>
Sent: Thursday, August 20, 2009 4:53:04 PM
Subject: Re: [webbeans-dev] @NormalScope and @Singleton
Thanks, fixed
Sent from my iPhone
On Aug 20, 2009, at 7:00 AM, Pete Muir wrote:
> 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 Strubergwrote:
>>> 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(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/webbeans-dev
>>>
>>
>>
>>
>> --Gavin King
>> gavin.king(a)gmail.com
>>
http://in.relation.to/Bloggers/Gavin
>>
http://hibernate.org
>>
http://seamframework.org
>>
>> _______________________________________________
>> webbeans-dev mailing list
>> webbeans-dev(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/webbeans-dev
>