[weld-dev] Using Interceptor/Decorator On Dependent Scoped Beans

Marius Bogoevici mariusb at redhat.com
Tue Oct 27 14:50:39 EDT 2009


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
> <gurkanerdogdu at yahoo.com> 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
>         weld-dev at lists.jboss.org
>         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
> weld-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/weld-dev


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20091027/575fd8be/attachment.html 


More information about the weld-dev mailing list