cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@apache.org>
Subject Re: ThreadSafe Marker On InputModules?
Date Thu, 14 Apr 2005 10:03:39 GMT
Thomas.Zirnsack@gfk.de wrote:
> 
> 
> 
> [Posted for a colleague]
> 
> Hello,
> 
> can anyone explain, how the org.apache.avalon.framework.thread.ThreadSafe
> marker interface modifies the instantiation handling for classes
> derived from org.apache.cocoon.components.modules.input.AbstractInputModule
> ?
> 
> Does Cocoon ensure that only one thread local instance is running ? And if
> so, does cocoon cache/pool such module instances
> so that they don't have to be configured again ?
only one - not only one thread local
if a component is thread safe it means every thread can use the same 
instance - no need for pooling.

If looking for analogy the component works the same as static methods do.

-- 
Leszek Gawron                                                 MobileBox
lgawron@apache.org                              http://www.mobilebox.pl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message