Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 40609 invoked by uid 500); 28 May 2001 15:23:18 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 40541 invoked from network); 28 May 2001 15:23:18 -0000 From: "Torsten Curdt" To: Subject: RE: [C2] Component Roles Date: Mon, 28 May 2001 17:22:52 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-reply-to: <991062884.3b126b6496db1@mail.otego.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N > > I'm trying to uses more and more of the Avalon interfaces > > for a better C2 integration. I have a taglib that creates > > instances of beans/classes: > > > > taglib: > > ... > > st.dff.test b = new st.dff.test(); > > ... > > > > Now I'd like to replace this with the Component pattern > > from Avalon so the Components are accessible from within > > the beans/classes: > > > > taglib: > > ... > > st.dff.test b = (st.dff.test) manager.lookup("st.dff.test"); > > ... > > > > But as far as I understand this would require for every > > bean/class a unique entry in the cocoon.roles. Is this right? > > > > And what happens when parameters are need for the constructor? > > > > taglib: > > ... > > s.dff.test b = (st.dff.test) new > > st.dff.test("parameter1","parameter2"); > > ... > > > > How is handle with the Component approach?! > > Best advice I can give you is "go read the Avalon docs" :) Well, of course this were I looked first ;) I did look into the API docs. Unfortunately I couldn't find the answer in there... Is there any other documentation available? I didn't even found CVS settings... Make the blind see ;) -- Torsten --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: