Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 1858 invoked by uid 500); 29 Jul 2001 11:12:17 -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 1849 invoked by uid 500); 29 Jul 2001 11:12:17 -0000 Delivered-To: apmail-xml-cocoon2-cvs@apache.org Date: 29 Jul 2001 11:08:18 -0000 Message-ID: <20010729110818.63338.qmail@icarus.apache.org> From: cziegeler@apache.org To: xml-cocoon2-cvs@apache.org Subject: cvs commit: xml-cocoon2/src/org/apache/cocoon/sitemap SitemapComponentSelector.java X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N cziegeler 01/07/29 04:08:18 Modified: src/org/apache/cocoon/sitemap Tag: cocoon_20_branch SitemapComponentSelector.java Log: Fixed releasing of components in subsitemaps Revision Changes Path No revision No revision 1.2.2.7 +13 -1 xml-cocoon2/src/org/apache/cocoon/sitemap/SitemapComponentSelector.java Index: SitemapComponentSelector.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/sitemap/SitemapComponentSelector.java,v retrieving revision 1.2.2.6 retrieving revision 1.2.2.7 diff -u -r1.2.2.6 -r1.2.2.7 --- SitemapComponentSelector.java 2001/07/04 08:41:58 1.2.2.6 +++ SitemapComponentSelector.java 2001/07/29 11:08:18 1.2.2.7 @@ -23,7 +23,7 @@ /** Default component manager for Cocoon's sitemap components. * @author Berin Loritsch * @author Giacomo Pati - * @version CVS $Id: SitemapComponentSelector.java,v 1.2.2.6 2001/07/04 08:41:58 cziegeler Exp $ + * @version CVS $Id: SitemapComponentSelector.java,v 1.2.2.7 2001/07/29 11:08:18 cziegeler Exp $ */ public class SitemapComponentSelector extends ExcaliburComponentSelector { private Map mime_types; @@ -56,6 +56,18 @@ } return component; + } + + public void release(Component component) { + // FIXME (CZ) + // Is this alright, to release the component using both + // selectors? + // But at this stage we don't know which selector + // was used to select the component! + super.release(component); + if (this.parentSelector != null) { + this.parentSelector.release(component); + } } public void initialize() { ---------------------------------------------------------------------- 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