ch.elca.el4j.services.debug
Class ShellExecutorImpl

java.lang.Object
  extended by 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:

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

Field Summary
protected  ApplicationContext m_ac
           
 
Constructor Summary
ShellExecutorImpl()
           
ShellExecutorImpl(ApplicationContext ac)
           
 
Method Summary
 ResultHolder eval(String stmt)
          Invoke a method on the shell
 bsh.Interpreter getInterpreter()
           
 bsh.NameSpace getNameSpace()
           
 void setInterpreter(bsh.Interpreter interpreter)
           
 void setNameSpace(bsh.NameSpace ns)
           
protected  void startup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_ac

protected ApplicationContext m_ac
Constructor Detail

ShellExecutorImpl

public ShellExecutorImpl()

ShellExecutorImpl

public ShellExecutorImpl(ApplicationContext ac)
Method Detail

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.