Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 46806 invoked by uid 500); 29 Dec 2001 11:49:45 -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 46797 invoked by uid 500); 29 Dec 2001 11:49:45 -0000 Delivered-To: apmail-xml-cocoon2-cvs@apache.org Date: 29 Dec 2001 11:49:45 -0000 Message-ID: <20011229114945.25433.qmail@icarus.apache.org> From: giacomo@apache.org To: xml-cocoon2-cvs@apache.org Subject: cvs commit: xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java sitemap.xsl X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N giacomo 01/12/29 03:49:45 Modified: src/org/apache/cocoon/components/language/markup/sitemap/java sitemap.xsl Added: lib avalon-framework-20011229.jar Removed: lib avalon-framework-4.1.1.jar Log: added new Parameters class to avalon-framework.jar to have a thread safe EMPTY_PARAMETERS in the sitemap as suggested by Marcus Crafter Revision Changes Path 1.1 xml-cocoon2/lib/avalon-framework-20011229.jar <> 1.58 +9 -12 xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl Index: sitemap.xsl =================================================================== RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl,v retrieving revision 1.57 retrieving revision 1.58 diff -u -r1.57 -r1.58 --- sitemap.xsl 28 Dec 2001 19:16:19 -0000 1.57 +++ sitemap.xsl 29 Dec 2001 11:49:44 -0000 1.58 @@ -126,7 +126,7 @@ * * @author <a href="mailto:giacomo@apache.org">Giacomo Pati</a> * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a> - * @version CVS $Id: sitemap.xsl,v 1.57 2001/12/28 19:16:19 bloritsch Exp $ + * @version CVS $Id: sitemap.xsl,v 1.58 2001/12/29 11:49:44 giacomo Exp $ */ public class extends AbstractSitemap { static final String LOCATION = "."; @@ -135,9 +135,6 @@ dateCreated = L; } - /** An empty <code>Parameter</code> used to pass to the sitemap components */ - private Parameters emptyParam = new Parameters(); - /** HashMap relating labels to view names */ private HashMap view_label_map = new HashMap(); @@ -740,7 +737,7 @@ List listOfMaps = (List)(new ArrayList()); Map map; Parameters param; - eventPipeline.setGenerator ("!error-notifier!", e.getMessage(), emptyParam, e); + eventPipeline.setGenerator ("!error-notifier!", e.getMessage(), Parameters.EMPTY_PARAMETERS, e); } catch (Exception ex) { if (getLogger().isErrorEnabled()) getLogger().error("error notifier barfs", ex); @@ -811,7 +808,7 @@ param - emptyParam + Parameters.EMPTY_PARAMETERS @@ -900,7 +897,7 @@ param - emptyParam + Parameters.EMPTY_PARAMETERS @@ -984,7 +981,7 @@ param - emptyParam + Parameters.EMPTY_PARAMETERS @@ -1100,7 +1097,7 @@ param - emptyParam + Parameters.EMPTY_PARAMETERS @@ -1246,7 +1243,7 @@ param - emptyParam + Parameters.EMPTY_PARAMETERS @@ -1699,7 +1696,7 @@ // performing link translation if (environment.getObjectModel().containsKey(Constants.LINK_OBJECT)) { - eventPipeline.addTransformer ("!link-translator!", null, emptyParam); + eventPipeline.addTransformer ("!link-translator!", null, Parameters.EMPTY_PARAMETERS); } @@ -1739,7 +1736,7 @@ param - emptyParam + Parameters.EMPTY_PARAMETERS ---------------------------------------------------------------------- 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