|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.cli4j.AbstractCommand
AbstractCommand provides a simplistic base class to extend for creation of
customized Command classes. It provides empty implementations for the
start and stop methods; most people probably
won't care about the lifecycle of the command.
| Fields inherited from interface org.cli4j.Command |
IDENT |
| Constructor Summary | |
AbstractCommand()
|
|
| Method Summary | |
abstract void |
execute(Context context,
java.lang.String[] arguments)
|
void |
start(Context context)
|
void |
stop(Context context)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractCommand()
| Method Detail |
public void start(Context context)
throws CliException
start in interface Command
public abstract void execute(Context context,
java.lang.String[] arguments)
throws CliException
execute in interface Command
public void stop(Context context)
throws CliException
stop in interface Command
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||