Clover coverage report - Foundation for Dentaku - 0.6
Coverage timestamp: Wed Jun 30 2004 20:03:29 EDT
file stats: LOC: 39   Methods: 2
NCLOC: 17   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
DefaultPipeline.java 100% 100% 100% 100%
coverage
 1   
 /*
 2   
  * DefaultPipeline.java
 3   
  * Copyright 2002-2004 Bill2, Inc.
 4   
  *
 5   
  * Licensed under the Apache License, Version 2.0 (the "License");
 6   
  * you may not use this file except in compliance with the License.
 7   
  * You may obtain a copy of the License at
 8   
  *
 9   
  *     http://www.apache.org/licenses/LICENSE-2.0
 10   
  *
 11   
  * Unless required by applicable law or agreed to in writing, software
 12   
  * distributed under the License is distributed on an "AS IS" BASIS,
 13   
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14   
  * See the License for the specific language governing permissions and
 15   
  * limitations under the License.
 16   
  */
 17   
 package org.dentaku.foundation.pipeline;
 18   
 
 19   
 import org.dentaku.foundation.event.AbstractEvent;
 20   
 
 21   
 import java.util.Iterator;
 22   
 import java.util.List;
 23   
 
 24   
 public class DefaultPipeline implements Pipeline {
 25   
     private List valves;
 26   
 
 27  1
     public List getValves() {
 28  1
         return valves;
 29   
     }
 30   
 
 31  1
     public void execute(AbstractEvent event) throws Exception {
 32  1
         boolean valveSuccess = true;
 33  1
         for (Iterator it = valves.iterator(); valveSuccess && it.hasNext();) {
 34  3
             Valve valve = (Valve) it.next();
 35  3
             valveSuccess = valve.execute(event);
 36   
         }
 37   
     }
 38   
 }
 39