org.teleal.lemma.pipeline
Class Pipeline<IN,OUT>

java.lang.Object
  extended by org.teleal.lemma.pipeline.Pipeline<IN,OUT>
Direct Known Subclasses:
XHTMLTemplateJavadocPipeline

public abstract class Pipeline<IN,OUT>
extends Object

Encapsulates an array of Processors.

A pipeline implementation processes an input object, with all its processors in the configured order, and returns an output object.

Author:
Christian Bauer

Constructor Summary
Pipeline()
           
 
Method Summary
 OUT execute(IN input)
           
 Context getContext()
           
abstract  Processor<IN,OUT>[] getProcessors()
           
 void prepareOutputFile(File file, boolean overwrite)
           
protected  void resetContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pipeline

public Pipeline()
Method Detail

getContext

public Context getContext()

resetContext

protected void resetContext()

execute

public OUT execute(IN input)

prepareOutputFile

public void prepareOutputFile(File file,
                              boolean overwrite)
                       throws Exception
Throws:
Exception

getProcessors

public abstract Processor<IN,OUT>[] getProcessors()


Copyright © 2011 Teleal GmbH, Switzerland. All Rights Reserved.