org.cli4j
Class AbstractCommand

java.lang.Object
  |
  +--org.cli4j.AbstractCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
Dynamic, DynCmd, Login, NullCommand, Shutdown, SystemLauncher

public abstract class AbstractCommand
extends java.lang.Object
implements Command

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.

Version:
@(#) $Id: AbstractCommand.html,v 1.2 2001/12/16 05:14:50 gmcallister Exp $
Author:
Glenn McAllister

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

AbstractCommand

public AbstractCommand()
Method Detail

start

public void start(Context context)
           throws CliException
Specified by:
start in interface Command

execute

public abstract void execute(Context context,
                             java.lang.String[] arguments)
                      throws CliException
Specified by:
execute in interface Command

stop

public void stop(Context context)
          throws CliException
Specified by:
stop in interface Command