Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 69212 invoked by uid 500); 18 Aug 2002 07:58:16 -0000 Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: cocoon-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 69199 invoked by uid 500); 18 Aug 2002 07:58:16 -0000 Delivered-To: apmail-xml-cocoon2-cvs@apache.org Date: 18 Aug 2002 07:58:15 -0000 Message-ID: <20020818075815.98360.qmail@icarus.apache.org> From: stephan@apache.org To: xml-cocoon2-cvs@apache.org Subject: cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap ComponentsSelector.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N stephan 2002/08/18 00:58:15 Modified: src/java/org/apache/cocoon/components/treeprocessor/sitemap ComponentsSelector.java Log: Solves the problem with the current Avalon lib. The problem is that the ExcaliburComponentSelector want to get the hint via the configuration. > String instrumentableName = > configuration.getAttribute( "instrumentable", configuration.getAttribute( "name" ) ); Revision Changes Path 1.4 +12 -5 xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap/ComponentsSelector.java Index: ComponentsSelector.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap/ComponentsSelector.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ComponentsSelector.java 8 Aug 2002 03:21:28 -0000 1.3 +++ ComponentsSelector.java 18 Aug 2002 07:58:15 -0000 1.4 @@ -221,22 +221,29 @@ // FIXME : need to catch exceptions since ECS doesn't propagate the throws clause of Initializable try { - Configuration emptyConfig = new DefaultConfiguration("", ""); + DefaultConfiguration config = null; // Ensure all system-defined hints exist. // NOTE : checking this here means they can be user-defined in the sitemap switch(this.roleId) { case GENERATOR : + + config = new DefaultConfiguration(COMPONENT_NAMES[GENERATOR], "autogenerated"); + config.setAttribute("name", ""); ensureExists("", - org.apache.cocoon.sitemap.NotifyingGenerator.class, emptyConfig); + org.apache.cocoon.sitemap.NotifyingGenerator.class, config); + config = new DefaultConfiguration(COMPONENT_NAMES[GENERATOR], "autogenerated"); + config.setAttribute("name", ""); ensureExists("", - org.apache.cocoon.sitemap.ContentAggregator.class, emptyConfig); + org.apache.cocoon.sitemap.ContentAggregator.class, config); break; case TRANSFORMER : + config = new DefaultConfiguration(COMPONENT_NAMES[TRANSFORMER], "autogenerated"); + config.setAttribute("name", ""); ensureExists("", - org.apache.cocoon.sitemap.LinkTranslator.class, emptyConfig); + org.apache.cocoon.sitemap.LinkTranslator.class, config); break; } ---------------------------------------------------------------------- In case of troubles, e-mail: webmaster@xml.apache.org To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-cvs-help@xml.apache.org