org.apache.geronimo.gshell.command
Interface Command

All Known Implementing Classes:
CatCommand, CommandSupport, EchoCommand, ExecuteCommand, ExitCommand, HelpCommand, JavaCommand, RshCommand, RshServerCommand, SetCommand, SleepCommand, SourceCommand, UnsetCommand, WaitCommand

public interface Command

Provides the basic interface for commands.

Version:
$Rev: 573330 $ $Date: 2007-09-06 11:20:42 -0700 (Thu, 06 Sep 2007) $

Nested Class Summary
static class Command.Result
           
 
Field Summary
static Command.Result FAILURE
          Standard command failure status code.
static Command.Result SUCCESS
          Standard command success status code.
 
Method Summary
 Object execute(Object... args)
          Execute the commands behavior.
 void init(CommandContext context)
          Initialize the command with its execution context.
 

Field Detail

SUCCESS

static final Command.Result SUCCESS
Standard command success status code.


FAILURE

static final Command.Result FAILURE
Standard command failure status code.

Method Detail

init

void init(CommandContext context)
Initialize the command with its execution context.


execute

Object execute(Object... args)
               throws Exception
Execute the commands behavior.

Throws:
Exception


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.