JTR 5.0 API Documentation

jtr.script
Interface IScriptEngine

All Superinterfaces:
IFactory
All Known Implementing Classes:
AbstractScriptEngine, BshScriptEngine, GroovyScriptEngine

public interface IScriptEngine
extends IFactory

This is the contract every JTR-enabled script-engine has to adhere to.

Since:
5.0
Version:
5.0
Author:
frusso

Method Summary
 java.lang.Object execute(java.lang.String scriptUID, ScriptParams actualParams, IScriptContext ctx)
          Executes the script identified by the scripUID with the give actualParams parameters and the given ctx context.
 IScriptEngine newInstance()
           
 void setScripts(Scripts scripts)
          Sets the configured collection of both l-scripts and p-scripts.
 

Method Detail

newInstance

IScriptEngine newInstance()

setScripts

void setScripts(Scripts scripts)
Sets the configured collection of both l-scripts and p-scripts.

Parameters:
scripts -

execute

java.lang.Object execute(java.lang.String scriptUID,
                         ScriptParams actualParams,
                         IScriptContext ctx)
                         throws ScriptException
Executes the script identified by the scripUID with the give actualParams parameters and the given ctx context.

Parameters:
scriptUID -
actualParams -
ctx -
Returns:
Throws:
ScriptException

The JTR Project is licensed under GPL version 2