Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 11012 invoked from network); 11 Jan 2000 18:44:14 -0000 Received: from unknown (HELO umpqua.dat.com) (209.241.199.17) by 63.211.145.10 with SMTP; 11 Jan 2000 18:44:14 -0000 Received: from mytownnet.com (dhcp109_10.dat.com [198.145.109.89]) by umpqua.dat.com (8.8.8+Sun/8.8.8) with ESMTP id KAA02770 for ; Tue, 11 Jan 2000 10:42:30 -0800 (PST) Message-ID: <387B7996.461AC42B@mytownnet.com> Date: Tue, 11 Jan 2000 10:42:30 -0800 From: "Craig R. McClanahan" Organization: MyTown Network, Incorporated X-Mailer: Mozilla 4.61 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-dev@jakarta.apache.org Subject: Re: You have to break eggs to make an omlette [was: LONG TERM PLAN] References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit "Anil K. Vijendran" wrote: > On Tue, 11 Jan 2000 costin@costin.dnt.ro wrote: > > > Does everyone agree that tomcat.core will have a dependency on DOM ? > > ( tomcat.current doesn't - is this a feature we want for the new architecture?) > > Why? Is it because the interceptors are picked from server.xml and are > configured in by core? > The current approach taken by the Tomcat.Next "Lifecycle" interface passes a DOM node that you use to configure yourself. The intent is that the Lifecycle pattern would be generally used for setting up most Tomcat.Next components, but it's not required. I'm not hung up on this approach, but the Tomcat.Current technique (convert the DOM to an XmlTree and deal with that) seems like overkill when Tomcat requires an XML parser to configure itself anyway -- you're pretty much guaranteed to have the DOM interfaces hanging around as well. > > It would be nice if core didn't have a dependency. It makes core lesser > embeddable. I'd like to see APIs that allow us to plug interceptors in and > the server.xml file is read and then these APIs are called at startup > time. > I'd be fine with alternatives that removed this dependency. As the Javadocs for Lifecycle state, I consider validating this choice to be a FIXME type issue. > > > > > Costin > > > Craig