org.writersforge.catalan.process.workers.dispatch
Class DispatchWorker

java.lang.Object
  extended byorg.writersforge.catalan.process.workers.BaseMetadataHolder
      extended byorg.writersforge.catalan.process.workers.BaseWorker
          extended byorg.writersforge.catalan.process.workers.dispatch.DispatchWorker
All Implemented Interfaces:
IMetadataHolder, IWorker

public class DispatchWorker
extends BaseWorker

IWorker implementation which dispatches nodes to various combinations of workers depending on regular expression matches or the Java Class of target nodes.

Author:
jsheets

Constructor Summary
DispatchWorker()
          Creates a new instance of DispatchWorker.
 
Method Summary
protected  void doWork()
          Core executor for descendents of BaseWorker.
 
Methods inherited from class org.writersforge.catalan.process.workers.BaseWorker
getActiveNodes, getActiveQueue, getDefaultProperties, getRuntimeProperties, getWorkspace, handleErrorProblem, handleFatalProblem, handleInfoProblem, handleWarningProblem, isProcessing, process, setDefaultProperties, setTerminalPriority
 
Methods inherited from class org.writersforge.catalan.process.workers.BaseMetadataHolder
getMetadata, setOptionalProperties, setRequiredProperties, validateProperties, validateType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.writersforge.catalan.process.workers.IMetadataHolder
getMetadata, validateProperties, validateType
 

Constructor Detail

DispatchWorker

public DispatchWorker()
Creates a new instance of DispatchWorker.

Method Detail

doWork

protected void doWork()
               throws ProcessException
Core executor for descendents of BaseWorker. The process() method sets up the in-process properties, then calls into this method.

Specified by:
doWork in class BaseWorker
Throws:
ProcessException - if a fatal error occurs during processing