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

Pete Muir pmuir at redhat.com
Wed Nov 5 15:00:33 EST 2008


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





More information about the weld-dev mailing list