Return-Path: Delivered-To: apmail-jakarta-avalon-dev-archive@jakarta.apache.org Received: (qmail 86667 invoked by uid 500); 22 Jul 2001 10:27:05 -0000 Mailing-List: contact avalon-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: "Avalon Development" Delivered-To: mailing list avalon-dev@jakarta.apache.org Received: (qmail 86656 invoked from network); 22 Jul 2001 10:27:04 -0000 Date: Sun, 22 Jul 2001 20:26:48 -0400 To: avalon-dev@jakarta.apache.org Subject: [PATCH] doc fixes Message-ID: <20010722202648.B31542@socialchange.net.au> Mail-Followup-To: avalon-dev@jakarta.apache.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline User-Agent: Mutt/1.3.19i From: jeff@socialchange.net.au (jeff) X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, The attached patch is for Berin's docs, which I've spent the day working through. It's mostly to fix bugs in the example code and config files, which I encountered while trying to get it to compile. --Jeff --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="docfixes.diff" Index: src/documentation/xdocs//developing/implementing.xml =================================================================== RCS file: /home/cvspublic/jakarta-avalon/src/documentation/xdocs/developing/implementing.xml,v retrieving revision 1.2 diff -u -r1.2 implementing.xml --- src/documentation/xdocs//developing/implementing.xml 2001/07/20 16:26:22 1.2 +++ src/documentation/xdocs//developing/implementing.xml 2001/07/22 09:56:00 @@ -121,7 +121,7 @@ } if (null == this.dbResource) { - this.dbResource = conf.getChild("dbpool"); + this.dbResource = conf.getChild("dbpool").getValue(); getLogger().debug("Using database pool: " + this.dbResource); // Notice the getLogger()? This is from AbstractLoggable // which I extend for just about all my components. @@ -145,11 +145,11 @@ } public final void initialize() throws Exception { - if (null == this.manager) throw IllegalStateException("Not Composed"); + if (null == this.manager) throw new IllegalStateException("Not Composed"); if (null == this.dbResource) - throw IllegalStateException("Not Configured"); + throw new IllegalStateException("Not Configured"); - if (disposed) throw IllegalStateException("Already disposed"); + if (disposed) throw new IllegalStateException("Already disposed"); this.initialized = true; } @@ -286,7 +286,7 @@ Since there are varying levels of integration you want to achieve with Excalibur's Component Architecture, we will start with the - lowest level. Excalibur has a group of ComponentHolder objects that + lowest level. Excalibur has a group of ComponentHandler objects that act as individual Containers for one type of Component. They manage the complete life of your Component. Let me introduce the concept of lifestyle interfaces. A lifestyle interface describes how the system @@ -339,7 +339,7 @@ - Creation and initialization is done when ComponentHolder is + Creation and initialization is done when ComponentHandler is created. @@ -361,7 +361,7 @@ - Creation and initialization is done when ComponentHolder is + Creation and initialization is done when ComponentHandler is created. @@ -369,7 +369,7 @@ - The ComponentHolder interface is very simple to deal with. You + The ComponentHandler interface is very simple to deal with. You initialize the Constructor with the Java class, the Configuration object, the ConfigurationManager, a Context object, and a RoleManager. If you know that your Component will not need any of @@ -382,8 +382,8 @@ - false @@ -444,7 +444,8 @@ test test - + false org.mysql.MySqlDriver @@ -501,7 +502,7 @@ new DefaultConfigurationBuilder(); Configuration sysConfig = builder.buildFromFile("./conf/system.xconf"); - this.manager.setLogger(Hierarchy.getLoggerFor("document")); + this.manager.setLogger(Hierarchy.getDefaultHierarchy().getLoggerFor("document")); this.manager.contextualize(new DefaultContext()); this.manager.configure(sysConfig); this.manager.initialize(); @@ -523,7 +524,7 @@ There is a lot of activity happening under the hood of the ExcaliburComponentManager. For each "component" element in the - configuration file, Excalibur creates a ComponentHolder for each + configuration file, Excalibur creates a ComponentHandler for each class entry and maps it to the role entry. The "component" element and all it's child elements are used for the Configuration of the Component. When the Component is an ExcaliburComponentSelector, the @@ -576,7 +577,7 @@ + "org.apache.avalon.excalibur.component.ExcaliburComponentSelector"> Initialization and Disposal Approach This developer's guide is dedicated to the three people who's vision started the Avalon project: Federico Barbieri, Stefano Mazzocchi, and - Pierpaolo Fumageli. Their concept for the Avalon project has stood + Pierpaolo Fumagalli. Their concept for the Avalon project has stood the test of time. Index: src/documentation/xdocs//developing/introduction.xml =================================================================== RCS file: /home/cvspublic/jakarta-avalon/src/documentation/xdocs/developing/introduction.xml,v retrieving revision 1.1 diff -u -r1.1 introduction.xml --- src/documentation/xdocs//developing/introduction.xml 2001/07/18 14:35:41 1.1 +++ src/documentation/xdocs//developing/introduction.xml 2001/07/22 09:56:15 @@ -27,7 +27,7 @@ number of projects. - Stefano Mazzocchi, Federico Barbieri, and Pierpaolo Fumagelli + Stefano Mazzocchi, Federico Barbieri, and Pierpaolo Fumagalli created the initial version. Later in 2000, Berin Loritsch and Peter Donald joined the project. By that time, Pierpaolo and Stefano had moved on to other projects and Java Apache Server --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: avalon-dev-help@jakarta.apache.org --ZPt4rx8FFjLCG7dd--