Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 76532 invoked by uid 500); 26 Apr 2002 07:19:15 -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 76523 invoked by uid 500); 26 Apr 2002 07:19:15 -0000 Delivered-To: apmail-xml-cocoon2-cvs@apache.org Date: 26 Apr 2002 07:19:13 -0000 Message-ID: <20020426071913.71357.qmail@icarus.apache.org> From: cziegeler@apache.org To: xml-cocoon2-cvs@apache.org Subject: cvs commit: xml-cocoon2/src/java/org/apache/cocoon/sitemap DefaultSitemapComponentSelector.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N cziegeler 02/04/26 00:19:13 Modified: src/java/org/apache/cocoon/sitemap DefaultSitemapComponentSelector.java Log: Fixing hasComponent() bug Revision Changes Path 1.4 +9 -1 xml-cocoon2/src/java/org/apache/cocoon/sitemap/DefaultSitemapComponentSelector.java Index: DefaultSitemapComponentSelector.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/sitemap/DefaultSitemapComponentSelector.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- DefaultSitemapComponentSelector.java 22 Apr 2002 13:44:23 -0000 1.3 +++ DefaultSitemapComponentSelector.java 26 Apr 2002 07:19:13 -0000 1.4 @@ -67,7 +67,7 @@ * * @author Berin Loritsch * @author Giacomo Pati - * @version CVS $Id: DefaultSitemapComponentSelector.java,v 1.3 2002/04/22 13:44:23 cziegeler Exp $ + * @version CVS $Id: DefaultSitemapComponentSelector.java,v 1.4 2002/04/26 07:19:13 cziegeler Exp $ */ public class DefaultSitemapComponentSelector extends ExcaliburComponentSelector implements SitemapComponentSelector { @@ -127,6 +127,14 @@ } else { super.release(component); } + } + + public boolean hasComponent(Object hint) { + boolean exists = super.hasComponent( hint ); + if ( !exists && this.parentSelector != null ) { + exists = this.parentSelector.hasComponent( hint ); + } + return exists; } 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