cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: AW: [C2]: Component Pooling and recycling
Date Wed, 21 Feb 2001 14:55:14 GMT
Carsten Ziegeler wrote:
> 
> > Berin Loritsch [mailto:bloritsch@apache.org] wrote:
> >
> > > What about the Recyclable components? Is it correct, that a Recyclable
> > > component can be used without Poolable (or PoolClient) ? If so, who is
> > > responsible for calling recycle() ?
> >
> > The ComponentPool is responsible for calling recycle().  However, since
> > you already have a reference to the Component, you can reuse it as long
> > as you call recycle() between each use.
> >
> Then I would suggest do add a test for Recyclable in the ResourcePipeline
> to recycle a component which is not PoolClient.

Really not necessary.  If we get a Component from the ComponentManager that
is not a PoolClient, it is never returned to the Pool.  Therefore it is never
used again.  The recycle() method in this case is completely orthagonal.  It
has no real use.

Mime
View raw message