----- Forwarded Message ----
From: Marius Bogoevici <[email protected]>
To: Dan Allen <[email protected]>
Cc: Gurkan Erdogdu <[email protected]>; 
[email protected]; [email protected]
Sent: Tue, October 27, 2009 8:50:39 PM
Subject: Re: [weld-dev] Using Interceptor/Decorator On Dependent Scoped Beans

 In Weld, we do apply decorators and interceptors on all managed beans, 
including the ones which are @Dependent.

Marius
On Tue, 2009-10-27 at 14:03 -0400, Dan Allen wrote:

>    According to the intro in Chapter 8. Decorators:
>
>>    "Decorators may be associated with any managed bean that is not itself an 
>> interceptor or decorator or with any EJB session bean."
>
>>    Dependent-scoped beans are managed beans, so ergo, they must allow 
>> decorators.
>
>>    I can't provide a use case off the top of my head (just not something my 
>> mind is currently chewing on).
>
>>    -Dan
>
>
>    On Tue, Oct 27, 2009 at 1:53 PM, Gurkan Erdogdu <[email protected]> 
> wrote:
>
>>        Hi;
>>
>>
>>>>        Does the 299 specification indicate that interceptors and 
>>>> decorators should
>>>>        not be called for dependent scoped beans?
>>
>>>>        Currently we do not implement Interceptor/Decorator on @Dependent 
>>>> scoped beans in OWB because we do all interceptor/decorator stuff using 
>>>> proxy and @Dependent scoped beans do not require client proxy. 
>>
>>>>        Does anyone has a good use case/example when dependent scoped beans 
>>>> are useful or necessary?
>>
>>>>        Thanks;
>>
>>>>        --Gurkan
>>
>>
>>
>>

>>
>>

>>>>        _______________________________________________
>>>>        weld-dev mailing list
>>[email protected]
>>https://lists.jboss.org/mailman/listinfo/weld-dev 

>
>
>>    -- 
>>    Dan Allen
>>    Senior Software Engineer, Red Hat | Author of Seam in Action
>>    Registered Linux User #231597
>
>http://mojavelinux.com
>http://mojavelinux.com/seaminaction
>http://www.google.com/profiles/dan.j.allen 
>_______________________________________________
>weld-dev mailing list
>[email protected] https://lists.jboss.org/mailman/listinfo/weld-dev 



      

Reply via email to