Return-Path: Delivered-To: apmail-jakarta-avalon-cvs-archive@apache.org Received: (qmail 84854 invoked from network); 13 Sep 2002 14:32:27 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 13 Sep 2002 14:32:27 -0000 Received: (qmail 9717 invoked by uid 97); 13 Sep 2002 14:33:02 -0000 Delivered-To: qmlist-jakarta-archive-avalon-cvs@jakarta.apache.org Received: (qmail 9701 invoked by uid 97); 13 Sep 2002 14:33:02 -0000 Mailing-List: contact avalon-cvs-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon CVS List" Reply-To: "Avalon Developers List" Delivered-To: mailing list avalon-cvs@jakarta.apache.org Received: (qmail 9690 invoked by uid 97); 13 Sep 2002 14:33:01 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: 13 Sep 2002 14:32:22 -0000 Message-ID: <20020913143222.37166.qmail@icarus.apache.org> From: mcconnell@apache.org To: jakarta-avalon-excalibur-cvs@apache.org Subject: cvs commit: jakarta-avalon-excalibur/meta/src/java/org/apache/excalibur/meta/info/builder XMLTypeCreator.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N mcconnell 2002/09/13 07:32:22 Modified: meta/src/java/org/apache/excalibur/meta ConfigurationBuilder.java example-service.xml type.dtd meta/src/java/org/apache/excalibur/meta/info/builder XMLTypeCreator.java Log: Updated DTD to use "info" element in preference to "component" element as the work "component" appears in the general container descriptor and is a potential source of consusion. Secondly, the "component" element at a type level is not defining a component but is instead defining information about the type. Changes are bakward compatible and do not require a version change. Revision Changes Path 1.6 +4 -4 jakarta-avalon-excalibur/meta/src/java/org/apache/excalibur/meta/ConfigurationBuilder.java Index: ConfigurationBuilder.java =================================================================== RCS file: /home/cvs/jakarta-avalon-excalibur/meta/src/java/org/apache/excalibur/meta/ConfigurationBuilder.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- ConfigurationBuilder.java 12 Sep 2002 05:35:33 -0000 1.5 +++ ConfigurationBuilder.java 13 Sep 2002 14:32:22 -0000 1.6 @@ -29,13 +29,13 @@ private static final DTDInfo[] c_dtdInfo = new DTDInfo[] { new DTDInfo( "-//AVALON/Component Type DTD Version 1.0//EN", - "http://jakarta.apache.org/avalon/dtds/type_1_0.dtd", + "http://jakarta.apache.org/avalon/dtds/meta/type_1_0.dtd", "org/apache/excalibur/meta/type.dtd" ), new DTDInfo( "-//AVALON/Component Type DTD Version 1.1//EN", - "http://jakarta.apache.org/avalon/dtds/type_1_1.dtd", + "http://jakarta.apache.org/avalon/dtds/meta/type_1_1.dtd", "org/apache/excalibur/meta/type.dtd" ), new DTDInfo( "-//AVALON/Service DTD Version 1.0//EN", - "http://jakarta.apache.org/avalon/dtds/service_1_0.dtd", + "http://jakarta.apache.org/avalon/dtds/meta/service_1_0.dtd", "org/apache/excalibur/meta/service.dtd" ), new DTDInfo( "-//PHOENIX/Block Info DTD Version 1.0//EN", "http://jakarta.apache.org/avalon/dtds/phoenix/blockinfo_1.0.dtd", 1.3 +1 -1 jakarta-avalon-excalibur/meta/src/java/org/apache/excalibur/meta/example-service.xml Index: example-service.xml =================================================================== RCS file: /home/cvs/jakarta-avalon-excalibur/meta/src/java/org/apache/excalibur/meta/example-service.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- example-service.xml 12 Sep 2002 08:07:43 -0000 1.2 +++ example-service.xml 13 Sep 2002 14:32:22 -0000 1.3 @@ -1,6 +1,6 @@ + "http://jakarta.apache.org/avalon/dtds/meta/service_1_0.dtd" > - + + + + + + + 1.7 +13 -2 jakarta-avalon-excalibur/meta/src/java/org/apache/excalibur/meta/info/builder/XMLTypeCreator.java Index: XMLTypeCreator.java =================================================================== RCS file: /home/cvs/jakarta-avalon-excalibur/meta/src/java/org/apache/excalibur/meta/info/builder/XMLTypeCreator.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- XMLTypeCreator.java 12 Sep 2002 15:09:40 -0000 1.6 +++ XMLTypeCreator.java 13 Sep 2002 14:32:22 -0000 1.7 @@ -102,7 +102,18 @@ Configuration configuration = null; - configuration = info.getChild( "component" ); + // + // changed the information block from "component" to "info" to + // avaiod confusion with the "component" elemement defintion in the + // meta-data level - change is backward compatible + // + + configuration = info.getChild( "info", null ); + if( configuration == null ) + { + configuration = info.getChild( "component" ); + } + final ComponentDescriptor descriptor = buildComponentDescriptor( classname, configuration ); -- To unsubscribe, e-mail: For additional commands, e-mail: