org.apache.commons.pipeline
Interface StageDriverFactory<T extends StageDriver>

All Known Implementing Classes:
DedicatedThreadStageDriverFactory, SynchronousStageDriverFactory, ThreadPoolStageDriverFactory

public interface StageDriverFactory<T extends StageDriver>

This interface represents a factory that is used by a Pipeline to create a driver for a Stage when that stage is added to the pipeline. The factory pattern is used here to ensure that each stage is run by a unique driver instance.

In order to guarantee that StageDriverFactory instances can be used effectively in configuration frameworks, each StageDriverFactory implementation must provide a no-argument constructor.


Method Summary
 T createStageDriver(Stage stage, StageContext context)
          This method is used to create a driver that will run the specified stage in the specified context.
 

Method Detail

createStageDriver

T createStageDriver(Stage stage,
                    StageContext context)
This method is used to create a driver that will run the specified stage in the specified context.

Parameters:
stage - The stage to be run by the newly created driver.
context - The context in which the stage will be run
Returns:
The newly created driver


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.