1 8 package org.apache.avalon.excalibur.pipeline; 9 10 import java.util.Iterator ; 11 12 17 public class ProcessorPipeline 18 extends DefaultPipeline 19 implements ProcessorStage 20 { 21 public void process( final Object object ) 22 { 23 final Iterator stages = m_stages.iterator(); 24 25 while( stages.hasNext() ) 26 { 27 ((ProcessorStage)stages.next()).process( object ); 28 } 29 } 30 31 public Stage getStage( final int index ) 32 { 33 return (Stage)m_stages.get( index ); 34 } 35 36 public int getSize() 37 { 38 return m_stages.size(); 39 } 40 } 41 | Popular Tags |