org.apache.avalon.excalibur.pipeline
Class DefaultPipeline

java.lang.Object
  |
  +--org.apache.avalon.excalibur.pipeline.DefaultPipeline
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, Pipeline, Stage
Direct Known Subclasses:
ProcessorPipeline

public class DefaultPipeline
extends java.lang.Object
implements Pipeline

This is basic array based pipeline.

Author:
Peter Donald

Field Summary
protected  java.util.ArrayList m_stages
           
 
Constructor Summary
DefaultPipeline()
           
 
Method Summary
 void addStage(Stage stage)
           
 int getSize()
          Retrieve size of pipeline (number of stages).
 Stage getStage(int index)
          Retrieve a particular stage of pipeline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_stages

protected final java.util.ArrayList m_stages
Constructor Detail

DefaultPipeline

public DefaultPipeline()
Method Detail

getSize

public int getSize()
Retrieve size of pipeline (number of stages).
Specified by:
getSize in interface Pipeline
Returns:
the size of pipeline

getStage

public Stage getStage(int index)
               throws java.util.NoSuchElementException
Retrieve a particular stage of pipeline
Specified by:
getStage in interface Pipeline
Parameters:
index - the index of stage
Returns:
the stage
Throws:
java.util.NoSuchElementException - if index >= getSize() or index < 0

addStage

public void addStage(Stage stage)


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.