Re: [picocontainer-dev] Patch for web ... to close that static getter IoC problem

Konstantin Priblouda <kpriblouda-/[email protected]> Fri, 20 Jun 2008 11:56:26 -0700 (PDT)
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>

----[ Konstantin Pribluda http://www.pribluda.de ]----------------

> what I am always curious about is, whether there is a real
> need for the
> different containers. Do we really have different component
> types for the 
> sessions or requests or is it that we need separate
> instances? In the
> latter case, there's absolutely no need for thread
> local containers at all.
> All you need are different component adapters. Like the
> ThreadLocalized you
> simply need a RequestScoped or SessionScoped one and you
> will get a new
> instance for each scope accordingly. The filter might add
> Picos to the
> different scopes, but why do they have to be thread
> localized?


Well,at least  there are hibernate sessions which require 
certain lifecycle and  how do we provide it for them?  

Having 3 containers makes it easier, without proliferating 
custom lifecycles through adapters. 

regards


      

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email