Jacson

de.spieleck.app.jacson
Class JacsonGeneric

java.lang.Object
  extended byde.spieleck.app.jacson.JacsonBlock
      extended byde.spieleck.app.jacson.Jacson
          extended byde.spieleck.app.jacson.JacsonGeneric
All Implemented Interfaces:
ConfigVerify.Acceptor, JacsonChunkDrain, JacsonEvaluator, JacsonNames, JacsonRegistrable, JacsonReporting, JacsonStately

public class JacsonGeneric
extends Jacson

This class extends Jacson and offers the possibility to configure JacsonSources instead of creating them programmatically
The JacsonSources used by GenericJacson have to implement GenericJacsonChunkSources. $Id: JacsonGeneric.java 13 2005-09-28 06:02:56Z pcs $

Author:
Patrick Carl
See Also:
GenericJacsonChunkSource

Field Summary
 
Fields inherited from class de.spieleck.app.jacson.Jacson
params
 
Fields inherited from class de.spieleck.app.jacson.JacsonBlock
chunkDispatch, evaluators, filters, label, myState
 
Fields inherited from interface de.spieleck.app.jacson.JacsonNames
BLOCKREPORT, JS_DEBUG_FLAG, JS_MAIN_CFG, JS_OBJ_EVAL, JS_OBJ_FILTER, JS_OBJ_LABEL, JS_OBJ_REPORT, JS_OBJ_SELECT, JS_OBJ_SOURCE, JS_PCK_EVAL, JS_PCK_FILTER, JS_PCK_REPORT, JS_PCK_SELECT, JS_PCK_SOURCE, JS_REP_BLOCK, JS_REP_CHUNK, JS_REP_EVAL, JS_REP_FILTER, JS_REP_LABEL, JS_REP_LIST, JS_REP_LOG, JS_REP_NAME, JS_REP_NUMBER, JS_REP_PROC, JS_REP_RESULT, JS_REP_SUMMARY, JS_REP_TIME, JS_REP_TSTAMP, JS_REPORT_CFG, JS_STATE_ID
 
Constructor Summary
JacsonGeneric(ConfigNode config, JacsonState params)
          Creates a new JacsonGeneric
 
Method Summary
 boolean accept(ConfigNode node)
           
protected  java.util.Iterator createSources(ConfigNode config)
          creates a JacsonSource from configuration
static void main(java.lang.String[] args)
          main class for JacsonGeneric using configured sources.
 
Methods inherited from class de.spieleck.app.jacson.Jacson
exit, obtainConfig, paramArgs, run, setParams, summary
 
Methods inherited from class de.spieleck.app.jacson.JacsonBlock
addEvaluator, addFilter, addReport, clearReports, createReport, dispatchChunk, getLabel, getMyDrain, getReport, init, obtainEvaluators, obtainFilters, obtainReports, putChunk, registerReport, registerReport, registerState, registerState, setChunkDispatch, summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JacsonGeneric

public JacsonGeneric(ConfigNode config,
                     JacsonState params)
              throws JacsonConfigException
Creates a new JacsonGeneric

Parameters:
config -
params -
Throws:
JacsonConfigException
Method Detail

createSources

protected java.util.Iterator createSources(ConfigNode config)
                                    throws JacsonConfigException
creates a JacsonSource from configuration

Returns:
an iterator of GenericJacsonChunkSources
Throws:
JacsonConfigException

main

public static void main(java.lang.String[] args)
main class for JacsonGeneric using configured sources. The code is based on Jacson

See Also:
Jacson

accept

public boolean accept(ConfigNode node)
Specified by:
accept in interface ConfigVerify.Acceptor
Overrides:
accept in class JacsonBlock
Parameters:
node - the ConfigNode to check
Returns:
true if given ConfigNode is accepted

Spieleck

Copyleft 2002 spieleck.de.