org.apache.geronimo.gshell
Class DefaultShell
java.lang.Object
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) $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultShell
public DefaultShell()
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.