ovidiu      02/03/17 22:38:32

  Modified:    src/scratchpad/schecoon/src/org/apache/cocoon/components/flow
                        Interpreter.java
  Log:
  (setResources): New method to make the resources tree available to the
  flow interpreter.
  
  Pass a Map to processPipeline instead of a HashMap.
  
  Revision  Changes    Path
  1.5       +12 -5     
xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/Interpreter.java
  
  Index: Interpreter.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/scratchpad/schecoon/src/org/apache/cocoon/components/flow/Interpreter.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Interpreter.java  17 Mar 2002 21:52:05 -0000      1.4
  +++ Interpreter.java  18 Mar 2002 06:38:32 -0000      1.5
  @@ -1,9 +1,8 @@
   package org.apache.cocoon.components.flow;
   
  -import java.io.InputStream;
  -import java.util.HashMap;
   import java.util.List;
  -import org.apache.avalon.framework.thread.ThreadSafe;
  +import java.util.Map;
  +import org.apache.cocoon.components.treeprocessor.CategoryNode;
   import org.apache.cocoon.components.treeprocessor.InvokeContext;
   import org.apache.cocoon.environment.Environment;
   import org.apache.cocoon.environment.Source;
  @@ -152,12 +151,20 @@
      *
      * @param name a <code>String</code> value, the name of the pipeline
      * (resource) in the sitemap.
  -   * @param pipelineArgs a <code>HashMap</code> value, the arguments
  +   * @param pipelineArgs a <code>Map</code> value, the arguments
      * to be passed to the sitemap.
      * @param bizData a <code>Object</code> value, the Java object or
      * <code>null</code> which contains the business data to be passed
      * to the generator of the pipeline (usually XSP or JSP).
      */
  -  void processPipeline(String name, HashMap pipelineArgs, Object bizData)
  +  void processPipeline(String name, Map pipelineArgs, Object bizData)
       throws Exception;
  +
  +  /**
  +   * Passes the resources tree from the sitemap. This contains all the
  +   * named pipelines defined in a sitemap.
  +   *
  +   * @param resources a <code>CategoryNode</code> value
  +   */
  +  void setResources(CategoryNode resources);
   }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to