cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/arch/config SitemapConfigurationBuilder.java
Date Tue, 11 Jul 2000 12:51:47 GMT
bloritsch    00/07/11 05:51:47

  Modified:    src/org/apache/arch/config Tag: xml-cocoon2
                        SitemapConfigurationBuilder.java
  Log:
  Fixed it with a hack.  It was calling protected methods within the ConfigurationImpl.
  My solution was for it to extend ConfigurationImpl, and provide the methods for it
  to call back to the superclass.
  
  It's ugly, but it works.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +12 -5     xml-cocoon/src/org/apache/arch/config/Attic/SitemapConfigurationBuilder.java
  
  Index: SitemapConfigurationBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/arch/config/Attic/SitemapConfigurationBuilder.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- SitemapConfigurationBuilder.java	2000/07/11 03:09:34	1.1.2.3
  +++ SitemapConfigurationBuilder.java	2000/07/11 12:51:46	1.1.2.4
  @@ -25,15 +25,22 @@
    *
    * @author <a href="mailto:fumagalli@exoffice.com">Pierpaolo Fumagalli</a>
    *         (Apache Software Foundation, Exoffice Technologies)
  - * @version CVS $Revision: 1.1.2.3 $ $Date: 2000/07/11 03:09:34 $
  + * @version CVS $Revision: 1.1.2.4 $ $Date: 2000/07/11 12:51:46 $
    */
  -public class SitemapConfigurationBuilder {
  +public class SitemapConfigurationBuilder extends ConfigurationImpl {
  +    protected SitemapConfigurationBuilder (String name) {
  +        super(name);
  +    }
  +
  +    protected String addAttribute(String name, String value) {
  +        return super.addAttribute(name,value);
  +    }
   
       /**
        * Return a new Configuration object.
        */
       public Configuration newConfiguration(String name) {
  -        return new ConfigurationImpl(name);
  +        return new SitemapConfigurationBuilder(name);
       }
   
       /** 
  @@ -41,7 +48,7 @@
        * value or <b>null</b>. 
        */ 
       public void addAttribute(String name, String value, Configuration conf) {
  -        ((ConfigurationImpl)conf).addAttribute(name,value);
  +        ((SitemapConfigurationBuilder)conf).addAttribute(name,value);
       } 
    
       /** 
  @@ -49,6 +56,6 @@
        * value or <b>null</b>. 
        */ 
       public void addConfiguration(Configuration child, Configuration conf) { 
  -        ((ConfigurationImpl)conf).addConfiguration(child); 
  +        ((SitemapConfigurationBuilder)conf).addConfiguration(child); 
       } 
   } 
  
  
  

Mime
View raw message