org.apache.geronimo.gshell
Class GShell

java.lang.Object
  extended by org.apache.geronimo.gshell.GShell
All Implemented Interfaces:
CommandExecutor, InteractiveShell, Shell

public class GShell
extends Object
implements InteractiveShell

A simple facade over GShell, sets up the container for you... you just run commands :-)

Version:
$Rev: 580765 $ $Date: 2007-09-30 11:52:39 -0700 (Sun, 30 Sep 2007) $

Constructor Summary
GShell(org.codehaus.plexus.classworlds.ClassWorld classWorld, IO io)
           
GShell(IO io)
           
 
Method Summary
 Object execute(Object... args)
           
 Object execute(String line)
           
 Object execute(String path, Object[] args)
           
 Environment getEnvironment()
           
 ShellInfo getShellInfo()
           
 void run(Object... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GShell

public GShell(IO io)
       throws Exception
Throws:
Exception

GShell

public GShell(org.codehaus.plexus.classworlds.ClassWorld classWorld,
              IO io)
       throws Exception
Throws:
Exception
Method Detail

getShellInfo

public ShellInfo getShellInfo()
Specified by:
getShellInfo in interface Shell

getEnvironment

public Environment getEnvironment()
Specified by:
getEnvironment in interface Shell

execute

public Object execute(String line)
               throws Exception
Specified by:
execute in interface CommandExecutor
Throws:
Exception

execute

public Object execute(Object... args)
               throws Exception
Specified by:
execute in interface CommandExecutor
Throws:
Exception

execute

public Object execute(String path,
                      Object[] args)
               throws Exception
Specified by:
execute in interface CommandExecutor
Throws:
Exception

run

public void run(Object... args)
         throws Exception
Specified by:
run in interface InteractiveShell
Throws:
Exception


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