Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.infohazard.maverick.flow
Class CommandFactory  view CommandFactory download CommandFactory.java

java.lang.Object
  extended byorg.infohazard.maverick.flow.CommandFactory

class CommandFactory
extends java.lang.Object

Factory for creating Command objects based on some preloaded context (such as global views) and an XML command node. created January 28, 2002

Version:
$Revision: 1.7 $ $Date: 2004/06/27 17:42:14 $

Field Summary
protected  ControllerFactory controllerFactory
          the controller factory.
protected static java.lang.String TAG_CONTROLLER
          tag for the controller.
protected static java.lang.String TAG_VIEW
          tag for views.
protected  ViewRegistry viewRegistry
          view registry.
 
Constructor Summary
CommandFactory(ViewRegistry viewReg)
           
 
Method Summary
 Command createCommand(org.jdom.Element commandNode)
          Creates a command from the commandNode.
 ControllerFactory getControllerFactory()
          Get controllerFactory.
 ViewRegistry getViewRegistry()
          Get view registry.
 void setControllerFactory(ControllerFactory controllerFactory)
          Set controllerFactory.
 void setViewRegistry(ViewRegistry viewReg)
          Set view registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_VIEW

protected static final java.lang.String TAG_VIEW
tag for views.

See Also:
Constant Field Values

TAG_CONTROLLER

protected static final java.lang.String TAG_CONTROLLER
tag for the controller.

See Also:
Constant Field Values

viewRegistry

protected ViewRegistry viewRegistry
view registry.


controllerFactory

protected ControllerFactory controllerFactory
the controller factory.

Constructor Detail

CommandFactory

public CommandFactory(ViewRegistry viewReg)
Method Detail

createCommand

public Command createCommand(org.jdom.Element commandNode)
                      throws ConfigException
Creates a command from the commandNode.


getViewRegistry

public ViewRegistry getViewRegistry()
Get view registry.


setViewRegistry

public void setViewRegistry(ViewRegistry viewReg)
Set view registry.


getControllerFactory

public ControllerFactory getControllerFactory()
Get controllerFactory.


setControllerFactory

public void setControllerFactory(ControllerFactory controllerFactory)
Set controllerFactory.