org.apache.geronimo.gshell
Class DefaultShell

java.lang.Object
  extended by org.apache.geronimo.gshell.DefaultShell
All Implemented Interfaces:
CommandExecutor, InteractiveShell, Shell, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

@Component(role=InteractiveShell.class)
public class DefaultShell
extends Object
implements InteractiveShell, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

This is the primary implementation of Shell.

Version:
$Rev: 576846 $ $Date: 2007-09-18 04:20:47 -0700 (Tue, 18 Sep 2007) $

Constructor Summary
DefaultShell()
           
 
Method Summary
 Object execute(Object... args)
           
 Object execute(String line)
           
 Object execute(String path, Object[] args)
           
 Environment getEnvironment()
           
 ShellInfo getShellInfo()
           
 void initialize()
           
 void run(Object... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultShell

public DefaultShell()
Method Detail

getEnvironment

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

getShellInfo

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

initialize

public void initialize()
                throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

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.