Example #1
0
 /**
  * Constructs a new command and registers it with a CommandProcessor.
  * @param commandProcessor	the CommandProcessor to register the Command with
  * @param commandName		name used to invoke the Command
  */
 public Command(CommandProcessor commandProcessor, String commandName)
 {
     this.commandProcessor = commandProcessor;
     this.commandName = commandName;
     commandProcessor.register(commandName, this);
 }