1 package org.apache.turbine.pipeline; 2 3 56 57 import java.io.IOException ; 58 59 import org.apache.turbine.Pipeline; 60 import org.apache.turbine.RunData; 61 import org.apache.turbine.TurbineException; 62 import org.apache.turbine.ValveContext; 63 64 74 public abstract class BranchPointValve 75 extends AbstractValve 76 { 77 80 protected static final Pipeline[] NO_PIPELINES = new Pipeline[0]; 81 82 85 protected Pipeline[] pipelines = NO_PIPELINES; 86 87 92 public void initialize() 93 throws Exception 94 { 95 if (pipelines != NO_PIPELINES) 96 { 97 for (int i = 0; i < pipelines.length; i++) 98 { 99 pipelines[i].initialize(); 100 } 101 } 102 } 103 104 133 public abstract void invoke(RunData data, ValveContext context) 134 throws IOException , TurbineException; 135 } 136 | Popular Tags |