You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2002/02/07 10:07:22 UTC

cvs commit: xml-cocoon2/src/scratchpad/src/org/apache/cocoon/treeprocessor TreeProcessor.java

cziegeler    02/02/07 01:07:22

  Modified:    src/scratchpad/src/org/apache/cocoon/treeprocessor
                        TreeProcessor.java
  Log:
  Added first part of support for the RequestLifecycleComponent to the TreeProcessor
  
  Revision  Changes    Path
  1.7       +4 -1      xml-cocoon2/src/scratchpad/src/org/apache/cocoon/treeprocessor/TreeProcessor.java
  
  Index: TreeProcessor.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/treeprocessor/TreeProcessor.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TreeProcessor.java	6 Feb 2002 18:22:28 -0000	1.6
  +++ TreeProcessor.java	7 Feb 2002 09:07:22 -0000	1.7
  @@ -82,6 +82,7 @@
   import org.apache.avalon.framework.thread.ThreadSafe;
   
   import org.apache.cocoon.Processor;
  +import org.apache.cocoon.components.CocoonComponentManager;
   import org.apache.cocoon.components.LifecycleHelper;
   import org.apache.cocoon.components.pipeline.EventPipeline;
   import org.apache.cocoon.components.pipeline.StreamPipeline;
  @@ -100,7 +101,7 @@
    * Interpreted tree-traversal implementation of a pipeline assembly language.
    *
    * @author <a href="mailto:sylvain@apache.org">Sylvain Wallez</a>
  - * @version CVS $Id: TreeProcessor.java,v 1.6 2002/02/06 18:22:28 sylvain Exp $
  + * @version CVS $Id: TreeProcessor.java,v 1.7 2002/02/07 09:07:22 cziegeler Exp $
    */
   
   public class TreeProcessor extends AbstractLoggable implements ThreadSafe, Processor,
  @@ -340,6 +341,7 @@
         throws Exception {
   
           SourceHandler oldSourceHandler = environment.getSourceHandler();
  +        CocoonComponentManager.enterEnvironment(environment, environment.getObjectModel());
   
           try {
               environment.setSourceHandler(this.sourceHandler);
  @@ -348,6 +350,7 @@
               }
               return this.rootNode.invoke(environment, context);
           } finally {
  +            CocoonComponentManager.leaveEnvironment();
               environment.setSourceHandler(oldSourceHandler);
           }
       }
  
  
  

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