ch.elca.el4j.services.debug
Class ShellExecutorImpl
java.lang.Object
ch.elca.el4j.services.debug.ShellExecutorImpl
- All Implemented Interfaces:
- ShellExecutor
public class ShellExecutorImpl
- extends Object
- implements ShellExecutor
The evaluator can evaluate script expressions.
For now it uses bsh. Later it should also be able to support other shells
(via bean scripting or the jdk 1.6 mechanism).
Features:
bsh.show=true shows more eval output
Variables available in the shell script:
-
ac
the current application context
-
$_
the last return result
- Author:
- Philipp H. Oser (POS)
- File-location:
- ShellExecutorImpl
- Last check-in date:
- 2009-12-01 10:59:54 +0100 (Di, 01. Dez 2009) by jonasha for revision 4010
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_ac
protected ApplicationContext m_ac
ShellExecutorImpl
public ShellExecutorImpl()
ShellExecutorImpl
public ShellExecutorImpl(ApplicationContext ac)
startup
protected void startup()
eval
public ResultHolder eval(String stmt)
- Description copied from interface:
ShellExecutor
- Invoke a method on the shell
- Specified by:
eval
in interface ShellExecutor
- Returns:
getNameSpace
public bsh.NameSpace getNameSpace()
setNameSpace
public void setNameSpace(bsh.NameSpace ns)
getInterpreter
public bsh.Interpreter getInterpreter()
setInterpreter
public void setInterpreter(bsh.Interpreter interpreter)
Copyright © 2005-2011 ELCA. All Rights Reserved.