Keel 2.1RC2

org.keel.services.script.jelly.models
Class ScriptRunner

java.lang.Object
  extended byorg.keel.services.model.StandardModel
      extended byorg.keel.services.model.StandardLogEnabledModel
          extended byorg.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

Field Summary
 
Fields inherited from class org.keel.services.model.StandardLogEnabledModel
log
 
Fields inherited from class org.keel.services.model.StandardModel
configuration
 
Fields inherited from interface org.keel.services.model.Model
ROLE
 
Constructor Summary
ScriptRunner()
           
 
Method Summary
 ModelResponse execute(ModelRequest request)
           
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.
 
Methods inherited from class org.keel.services.model.StandardLogEnabledModel
enableLogging
 
Methods inherited from class org.keel.services.model.StandardModel
configure, getConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptRunner

public ScriptRunner()
Method Detail

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

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.