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 Thu, 22 Feb 2001 15:04:31 GMT
Berin Loritsch wrote:
> 
> 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.

Ok, Carsten, you can go to town now.  Every time a Component is Selected or
LookedUp, we need to Release them.  I made the initial changes with the new
ComponentManager/ComponentSelector changes, but I didn't go so far as to
remove PoolClient....

Mime
View raw message