----- Original Message ----- From: "Vadim Gritsenko" To: Sent: Thursday, November 30, 2000 9:13 AM Subject: RE: [C2]: Dispose of sitemap components > > -----Original Message----- > > From: giacomo@hns.com [mailto:giacomo@hns.com]On Behalf Of Giacomo Pati > > Sent: Thursday, November 30, 2000 1:46 AM > > To: cocoon-dev@xml.apache.org > > Subject: Re: [C2]: Dispose of sitemap components > > > > > > Berin Loritsch wrote: > > > > > > ----- Original Message ----- > > > From: Carsten Ziegeler > > > To: > > > Sent: Wednesday, November 29, 2000 6:13 AM > > > Subject: [C2]: Dispose of sitemap components > > > > > > > Hi, > > > > > > > what do you think of a dispose() method for each sitemap component > > > (generator, transformer, serializer etc) as an equivalent to the setup() > > > method? > > > > > > Quick question: why setup()? Avalon has the Initializable > > interface with > > > init() that is for the same purpose. > > > > Well, it's not setup() but setup(...., ...., ....) and it's used to pass > > run time request parameters and alike to a component before calling its > > generate/transfor/serialize functionality. Is this the same purpose as > > init() was meant to? > > init() and dispose() methods should be called once in component's lifecycle > (according to > avalon docs), init() after configure() and compose(), dispose() before > fnialize(). > > BTW, why don't use avalon's contextualize(Context) from Contextualizable > instead of Cocoon-specific setup(...,...,...)? > And, it seems to me, when component is going back to pool recycle() should > be used. You are absolutely correct. If I said anything that could be understood any other way then I was _wrong_. I am switching between two open source projects and three proprietary projects, and it is hard to keep them all straight.