1 8 package org.apache.avalon.excalibur.pipeline; 9 10 import java.util.ArrayList ; 11 import java.util.NoSuchElementException ; 12 13 18 public class DefaultPipeline 19 implements Pipeline 20 { 21 protected final ArrayList m_stages = new ArrayList (); 22 23 28 public int getSize() 29 { 30 return m_stages.size(); 31 } 32 33 40 public Stage getStage( final int index ) 41 throws NoSuchElementException  42 { 43 return (Stage)m_stages.get( index ); 44 } 45 46 public void addStage( final Stage stage ) 47 { 48 m_stages.add( stage ); 49 } 50 } 51 | Popular Tags |