Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 98147 invoked by uid 500); 21 Aug 2001 13:32:59 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 98132 invoked from network); 21 Aug 2001 13:32:58 -0000 Message-ID: <3B826306.8B5AF2C4@apache.org> Date: Tue, 21 Aug 2001 09:32:54 -0400 From: Berin Loritsch X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: Component setup References: <20010821122619.A28808@bibop.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Gianugo Rabellino wrote: > > Ciao, > > while I understand this is more an Avalon-specific question, > I'm a bit confused about component setup in Cocoon. From > Berin's documents I understand that there are some methods > that are called once in a component's life such as > configure(), initialize(), compose() and so on. > > I'm planning to use initialize() in XMLDBGenerator in > order to obtain a database instance that will be reused > during the component lifetime: I actually did it and it > seems to work, yet by grepping the whole Cocoon code base > I see that Initializable is implemented only in Cocoon.java: > is that on purpose (i.e. is the use of Initializable discouraged > for some reason that I'm missing) or is it just a coincidence? It's mainly coincidence. Much of Cocoon takes advantage of the well defined ordering of method calls--or only use Composable and Configurable. They are relatively simple. --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org