cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ovi...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/treeprocessor/sitemap CallNodeBuilder2.java
Date Fri, 15 Mar 2002 23:40:30 GMT
ovidiu      02/03/15 15:40:30

  Modified:    src/scratchpad/schecoon/src/org/apache/cocoon/components/treeprocessor/sitemap
                        CallNodeBuilder2.java
  Log:
  Invoke configure() on the constructed node.
  
  Revision  Changes    Path
  1.2       +7 -4      xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/treeprocessor/sitemap/CallNodeBuilder2.java
  
  Index: CallNodeBuilder2.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/treeprocessor/sitemap/CallNodeBuilder2.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CallNodeBuilder2.java	13 Mar 2002 19:04:52 -0000	1.1
  +++ CallNodeBuilder2.java	15 Mar 2002 23:40:30 -0000	1.2
  @@ -1,17 +1,18 @@
   package org.apache.cocoon.components.treeprocessor.sitemap;
   
  +
  +
  +import java.util.*;
  +import org.apache.avalon.framework.configuration.Configurable;
   import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.configuration.ConfigurationException;
  -
   import org.apache.cocoon.components.treeprocessor.AbstractProcessingNodeBuilder;
   import org.apache.cocoon.components.treeprocessor.CategoryNode;
   import org.apache.cocoon.components.treeprocessor.CategoryNodeBuilder;
  -import org.apache.cocoon.components.treeprocessor.MapStackResolver;
   import org.apache.cocoon.components.treeprocessor.LinkedProcessingNodeBuilder;
  +import org.apache.cocoon.components.treeprocessor.MapStackResolver;
   import org.apache.cocoon.components.treeprocessor.ProcessingNode;
   
  -import java.util.*;
  -
   public class CallNodeBuilder2 extends CallNodeBuilder
     implements LinkedProcessingNodeBuilder
   {
  @@ -32,6 +33,8 @@
         this.node = new CallFunctionNode(functionName);
   
       this.treeBuilder.setupNode(this.node, config);
  +    if (node instanceof Configurable)
  +      ((Configurable)this.node).configure(config);
   
       return this.node;
     }
  
  
  

----------------------------------------------------------------------
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