|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface ScriptRunner
Common interface for all script runners, allowing access to a scripting engine.
| Method Summary | |
|---|---|
void |
cleanup()
Perform cleanup after we're done using this script runner. |
Object |
evaluate(String script,
Map<String,Object> variables)
Evaluate the script specified as input and get the evaluation result. |
Object |
evaluate(String scriptId,
String script,
Map<String,Object> variables)
Evaluate the script specified as input and get the evaluation result. |
void |
init()
Initialize the execution environment. |
| Method Detail |
|---|
Object evaluate(String script,
Map<String,Object> variables)
throws JPPFScriptingException
script - - a string containing the script to evaluate.variables - - a mapping of objects to variable names, added within the scope of the script.
JPPFScriptingException - if an error occurs while evaluating the script.
Object evaluate(String scriptId,
String script,
Map<String,Object> variables)
throws JPPFScriptingException
scriptId - - a unique identifer for the script, to be used if the engine generates compiled code
which can be later retrieved through this id.script - - a string containing the script to evaluate.variables - - a mapping of objects to variable names, added within the scope of the script.
JPPFScriptingException - if an error occurs while evaluating the script.void init()
void cleanup()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||