Clover coverage report - angkor - 0.4
Coverage timestamp: ti okt 15 2002 22:32:48 CEST
file stats: LOC: 39   Methods: 3
NCLOC: 26   Classes: 1
Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover.
 
 Source file Conditionals Statements Methods TOTAL
SingleViewFactoryRenderValve.java - 100% 100% 100%
 1   
 /*
 2   
  * Angkor Web Framework
 3   
  *
 4   
  * Distributable under LGPL license.
 5   
  * See terms of license at gnu.org.
 6   
  */
 7   
 
 8   
 package com.tirsen.angkor.process;
 9   
 
 10   
 import com.tirsen.angkor.RenderContext;
 11   
 import com.tirsen.angkor.ViewFactory;
 12   
 
 13   
 public class SingleViewFactoryRenderValve extends RenderValve
 14   
 {
 15   
     private ViewFactory factory;
 16   
 
 17  8
     public SingleViewFactoryRenderValve(ViewFactory factory)
 18   
     {
 19  8
         this.factory = factory;
 20   
     }
 21   
 
 22  8
     protected Pipeline createRenderPipeline()
 23   
     {
 24  8
         Pipeline pipeline = super.createRenderPipeline();
 25  8
         pipeline.addValve(new DoRenderValve());
 26  8
         return pipeline;
 27   
     }
 28   
 
 29  8
     public void execute(ExecuteContext exec) throws Exception
 30   
     {
 31  8
         RenderContext renderContext = (RenderContext) exec.getAttribute(ExecuteContext.RenderContextAttribute);
 32  8
         Pipeline subPipeline = createRenderPipeline();
 33  8
         ExecuteContext subExec = subPipeline.createExecuteContext(renderContext);
 34  8
         subExec.setAttribute(ViewFactoryAttribute, factory);
 35  8
         subPipeline.execute(subExec);
 36  8
         exec.executeNext();
 37   
     }
 38   
 }
 39