org.apache.geronimo.gshell.commands.optional
Class JavaCommand

java.lang.Object
  extended by org.apache.geronimo.gshell.command.CommandSupport
      extended by org.apache.geronimo.gshell.commands.optional.JavaCommand
All Implemented Interfaces:
Command

public class JavaCommand
extends CommandSupport

Execute a Java standard application.

By default looks for static main(String[]) to execute, but you can specify a different static method that takes a String[] to execute instead.

Version:
$Rev: 573941 $ $Date: 2007-09-08 18:55:53 -0700 (Sat, 08 Sep 2007) $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.geronimo.gshell.command.Command
Command.Result
 
Field Summary
 
Fields inherited from class org.apache.geronimo.gshell.command.CommandSupport
context, io, log, variables
 
Fields inherited from interface org.apache.geronimo.gshell.command.Command
FAILURE, SUCCESS
 
Constructor Summary
JavaCommand()
           
 
Method Summary
protected  Object doExecute()
           
 
Methods inherited from class org.apache.geronimo.gshell.command.CommandSupport
displayHelp, execute, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaCommand

public JavaCommand()
Method Detail

doExecute

protected Object doExecute()
                    throws Exception
Specified by:
doExecute in class CommandSupport
Throws:
Exception


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