org.infohazard.maverick.flow
Class Loader

java.lang.Object
  |
  +--org.infohazard.maverick.flow.Loader

public class Loader
extends java.lang.Object

Builds the tree of flow objects which process Maverick commands.

Version:
$Revision: 1.13 $ $Date: 2002/06/06 12:23:53 $
Author:
Jeff Schnitzer

Field Summary
protected static java.lang.String ATTR_COMMAND_NAME
           
protected static java.lang.String ATTR_PROVIDER
           
protected  org.infohazard.maverick.flow.CommandFactory commandFact
          For creating commands
protected  java.util.Map commands
          Commands get built into this map.
protected  org.infohazard.maverick.flow.MasterFactory masterFact
          Encapsulates view and transform factories and handles decoration
protected static java.lang.String PARAM_DEFAULT_TRANSFORM_TYPE
           
protected static java.lang.String PARAM_DEFAULT_VIEW_TYPE
           
protected  javax.servlet.ServletConfig servletCfg
           
protected static java.lang.String TAG_COMMAND
           
protected static java.lang.String TAG_COMMANDS
           
protected static java.lang.String TAG_MODULES
           
protected static java.lang.String TAG_SHUNTFACTORY
           
protected static java.lang.String TAG_TRANSFORMFACTORY
           
protected static java.lang.String TAG_VIEWFACTORY
           
protected static java.lang.String TAG_VIEWS
           
protected  org.infohazard.maverick.flow.ViewRegistry viewReg
          For tracking global views and managing view lists
 
Constructor Summary
Loader(org.jdom.Document doc, javax.servlet.ServletConfig dispatcherConfig)
           
 
Method Summary
 java.util.Map getCommands()
           
protected  void loadDocument(org.jdom.Document doc)
           
protected  void loadModules(org.jdom.Element modulesNode)
           
protected  void setupCoreModules()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_MODULES

protected static final java.lang.String TAG_MODULES
See Also:
Constant Field Values

TAG_VIEWFACTORY

protected static final java.lang.String TAG_VIEWFACTORY
See Also:
Constant Field Values

TAG_TRANSFORMFACTORY

protected static final java.lang.String TAG_TRANSFORMFACTORY
See Also:
Constant Field Values

TAG_SHUNTFACTORY

protected static final java.lang.String TAG_SHUNTFACTORY
See Also:
Constant Field Values

ATTR_PROVIDER

protected static final java.lang.String ATTR_PROVIDER
See Also:
Constant Field Values

TAG_COMMANDS

protected static final java.lang.String TAG_COMMANDS
See Also:
Constant Field Values

TAG_COMMAND

protected static final java.lang.String TAG_COMMAND
See Also:
Constant Field Values

ATTR_COMMAND_NAME

protected static final java.lang.String ATTR_COMMAND_NAME
See Also:
Constant Field Values

TAG_VIEWS

protected static final java.lang.String TAG_VIEWS
See Also:
Constant Field Values

PARAM_DEFAULT_VIEW_TYPE

protected static final java.lang.String PARAM_DEFAULT_VIEW_TYPE
See Also:
Constant Field Values

PARAM_DEFAULT_TRANSFORM_TYPE

protected static final java.lang.String PARAM_DEFAULT_TRANSFORM_TYPE
See Also:
Constant Field Values

commands

protected java.util.Map commands
Commands get built into this map.


servletCfg

protected javax.servlet.ServletConfig servletCfg

masterFact

protected org.infohazard.maverick.flow.MasterFactory masterFact
Encapsulates view and transform factories and handles decoration


viewReg

protected org.infohazard.maverick.flow.ViewRegistry viewReg
For tracking global views and managing view lists


commandFact

protected org.infohazard.maverick.flow.CommandFactory commandFact
For creating commands

Constructor Detail

Loader

public Loader(org.jdom.Document doc,
              javax.servlet.ServletConfig dispatcherConfig)
       throws ConfigException
Parameters:
doc - An already parsed JDOM Document of the config file.
dispatcherConfig -
Throws:
ConfigException
Method Detail

getCommands

public java.util.Map getCommands()
Returns:
The commands value

setupCoreModules

protected void setupCoreModules()
                         throws ConfigException
Throws:
ConfigException

loadDocument

protected void loadDocument(org.jdom.Document doc)
                     throws ConfigException
Parameters:
doc -
Throws:
ConfigException

loadModules

protected void loadModules(org.jdom.Element modulesNode)
                    throws ConfigException
Parameters:
modulesNode -
Throws:
ConfigException