cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/sitemap SitemapComponentSelector.java
Date Sun, 29 Jul 2001 11:08:03 GMT
cziegeler    01/07/29 04:08:03

  Modified:    src/org/apache/cocoon/sitemap SitemapComponentSelector.java
  Log:
  Fixed releasing of components in subsitemaps
  
  Revision  Changes    Path
  1.6       +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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- SitemapComponentSelector.java	2001/07/04 08:43:41	1.5
  +++ SitemapComponentSelector.java	2001/07/29 11:08:03	1.6
  @@ -23,7 +23,7 @@
   /** Default component manager for Cocoon's sitemap components.
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
    * @author <a href="mailto:giacomo@apache.org">Giacomo Pati</a>
  - * @version CVS $Id: SitemapComponentSelector.java,v 1.5 2001/07/04 08:43:41 cziegeler
Exp $
  + * @version CVS $Id: SitemapComponentSelector.java,v 1.6 2001/07/29 11:08:03 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


Mime
View raw message