org.keel.services.script.jelly.models
Class ScriptRunner
java.lang.Object
org.keel.services.model.StandardModel
org.keel.services.model.StandardLogEnabledModel
org.keel.services.script.jelly.models.ScriptRunner
- All Implemented Interfaces:
- Configurable, LogEnabled, Model
- public class ScriptRunner
- extends StandardLogEnabledModel
A test model to test/demonstrate the script service in Keel This model demonstrates that you can essentially write appl. code independent of the actual scripting language used. Here Javascript, TCL and Jelly scripts run with identical code (implemented in the "runIt" method below) This identical model is in the svc-script-bsf module.
- Version:
- $Revision: 1.3 $ $Date: 2003/07/13 15:51:19 $
- Author:
- Schatterjee Created on Jun 14, 2003
| Fields inherited from interface org.keel.services.model.Model |
ROLE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptRunner
public ScriptRunner()
execute
public ModelResponse execute(ModelRequest request)
throws ModelException
-
- Throws:
ModelException
- See Also:
Model.execute(org.keel.services.model.ModelRequest)
runIt
private void runIt(ModelRequest request,
ModelResponse response,
java.lang.String service,
java.lang.String scriptName)
-
Common code to pass variables to each scripting language and to read values back.
-
- Parameters:
request - The model request
response - The model response
scriptName - The script to execute
Please see keelframework.org for information about new Keel releases.