jconch.pipeline.impl
Class TransformerProcessor

java.lang.Object
  extended by jconch.pipeline.PipeStage
      extended by jconch.pipeline.Processor
          extended by jconch.pipeline.impl.TransformerProcessor
All Implemented Interfaces:
PipeElement

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

Constructor Summary
protected TransformerProcessor(org.apache.commons.collections.Transformer trans, ThreadingModel threading, PipeLink inLink, PipeLink outLink)
          Constructor.
 
Method Summary
 java.lang.Object process(java.lang.Object item)
          Delegates the implemenation to Transformer.transform(Object).
 
Methods inherited from class jconch.pipeline.Processor
execute, getLinkIn, getLinkOut, isFinished
 
Methods inherited from class jconch.pipeline.PipeStage
getThreadingModel, isStarted, logMessage, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformerProcessor

protected TransformerProcessor(org.apache.commons.collections.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.
Method Detail

process

public java.lang.Object process(java.lang.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.