jconch.pipeline.impl
Class TransformerProcessor
java.lang.Object
jconch.pipeline.PipelineStage
jconch.pipeline.Processor
jconch.pipeline.impl.TransformerProcessor
public abstract class TransformerProcessor
- extends Processor
A Transformer-based implementation of a Processor.
Implementation Note: Due to a
failing of generics, there is no type-safety available for this
implementation.
- Author:
- Robert Fischer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformerProcessor
protected TransformerProcessor(Transformer trans,
ThreadingModel threading,
PipeLink inLink,
PipeLink outLink)
- Constructor.
- Parameters:
trans - The implementation of the processing.
- Throws:
org.apache.commons.lang.NullArgumentException - If any argument is null.
process
public Object process(Object item)
- Delegates the implemenation to
Transformer.transform(Object).
- Specified by:
process in class Processor
- Parameters:
item - The item to process.
- Returns:
- The processed item, or
null to drop it.