net.sf.zekr.common.commandline
Class CommandHandler

java.lang.Object
  extended by net.sf.zekr.common.commandline.CommandHandler
All Implemented Interfaces:
Command
Direct Known Subclasses:
CleanCommandHandler, HelpCommandHandler, IndexCommandHandler, OtherCommandHandler, WorkspaceCommandHandler

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

Author:
Mohsen Saboorian

Field Summary
protected  java.lang.String command
           
protected  java.lang.String[] options
           
protected  java.io.PrintStream stderr
           
protected  java.io.PrintStream stdout
           
 
Constructor Summary
protected CommandHandler()
           
 
Method Summary
abstract  void execute()
          Execute the command
 boolean launchAfter()
          Specifies whether application should be launched after performing the command or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

options

protected java.lang.String[] options

command

protected java.lang.String command

stdout

protected java.io.PrintStream stdout

stderr

protected java.io.PrintStream stderr
Constructor Detail

CommandHandler

protected CommandHandler()
Method Detail

execute

public abstract void execute()
                      throws CommandException
Description copied from interface: Command
Execute the command

Specified by:
execute in interface Command
Throws:
CommandException

launchAfter

public boolean launchAfter()
Description copied from interface: Command
Specifies whether application should be launched after performing the command or not.

Specified by:
launchAfter in interface Command
Returns:
true if application should be launched after performing this command; false otherwise.