|
|||||||||
| Home >> All >> org >> infohazard >> maverick >> [ flow overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.infohazard.maverick.flow
Class CommandBase

java.lang.Objectorg.infohazard.maverick.flow.CommandBase
- All Implemented Interfaces:
- Command
- Direct Known Subclasses:
- CommandMultipleViews, CommandSingleView
- abstract class CommandBase
- extends java.lang.Object
- implements Command
- extends java.lang.Object
Base class for implementing a Maverick Command.
Implementors must define getView(java.lang.String) 55 .
CommandBase obtains a View name by calling its Controller's go 55 method, and then invokes the View's go 55 method.
The ModelLifetime interface is honored. After invoking View.go, if the model object is an instance of ModelLifetime, its discard 55 method is called.
| Field Summary | |
protected Controller |
controller
Reference to our Controller. |
private static org.apache.commons.logging.Log |
log
CommandBase logger. |
| Constructor Summary | |
CommandBase(Controller ctl)
Set reference to out Controller. |
|
| Method Summary | |
protected abstract View |
getView(java.lang.String name)
|
void |
go(MaverickContext mctx)
Execute the Command and render the results! |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
log
private static org.apache.commons.logging.Log log
CommandBase logger.
controller
protected Controller controller
Reference to our Controller.
| Constructor Detail |
CommandBase
public CommandBase(Controller ctl)
Set reference to out Controller.
| Method Detail |
go
public void go(MaverickContext mctx) throws java.io.IOException, javax.servlet.ServletException
- Description copied from interface:
Command Execute the Command and render the results!
getView
protected abstract View getView(java.lang.String name)
|
|||||||||
| Home >> All >> org >> infohazard >> maverick >> [ flow overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.infohazard.maverick.flow.CommandBase