[webbeans-dev] Re: Deployment type for simple web beans

Gavin King gavin at hibernate.org
Wed Nov 5 15:08:23 EST 2008


The version of the spec that I'm looking at says:

he default deployment type for a Web Bean which does not explicitly
declare a deployment type depends upon its de-
clared stereotypes:
• If a Web Bean does not declare any stereotype with a declared
default deployment type, then the default deployment
type is @Production.
• Otherwise, the default deployment type for the Web Bean is the
highest-precedence default deployment type declared
by any stereotype declared by the Web Bean.


On Wed, Nov 5, 2008 at 2:00 PM, Pete Muir <pmuir at redhat.com> wrote:
> This
>
>> 2.5.5. Default deployment type
>
>> When no deployment type is explicitly declared by annotating the
>> implementation class or producer method, or by use of
>> XML, the deployment type is defaulted.
>
>> The default deployment type for a Web Bean which does not explicitly
>> declare a deployment type depends upon its de-
>> clared stereotypes:
>> • If a Web Bean defined using XML does not declare any stereotype with a
>> declared default deployment type, then the
>> default deployment type is @Production.
>> • Otherwise, the default deployment type for the Web Bean is the
>> highest-precedence default deployment type declared
>> by any stereotype declared by the Web Bean.
>>
>
>> Thus, the following declarations are equivalent:
>> @Production
>> public class Order {}
>> public class Order {}
>> If a Web Bean explicitly declares a deployment type, any default
>> deployment type declared by stereotypes are ignored.
>
> I can't see anything in there that defines what the default deployment type
> is for a non-xml defined bean...
>
>
> On 5 Nov 2008, at 19:49, Gavin King wrote:
>
>> the default deployment type.
>>
>> which section of the spec are you looking at.
>>
>> On Wed, Nov 5, 2008 at 1:29 PM, Pete Muir <pmuir at redhat.com> wrote:
>>>
>>> I can't work out if simple web beans with no explicit stereotype or
>>> deployment type annotation and no xml definition have either:
>>>
>>> a default deployment type of ???
>>>
>>> or
>>>
>>> no deployment type
>>>
>>
>>
>>
>> --
>> Gavin King
>> gavin.king at gmail.com
>> http://in.relation.to/Bloggers/Gavin
>> http://hibernate.org
>> http://seamframework.org
>
>



-- 
Gavin King
gavin.king at gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Web Beans 20081105.pdf
Type: application/pdf
Size: 496539 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/weld-dev/attachments/20081105/98135ada/attachment.pdf 


More information about the weld-dev mailing list