public class GroovyLocalScriptExecutor extends AbstractLocalScriptExecutor<groovy.lang.Script>
| Constructor and Description |
|---|
GroovyLocalScriptExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(groovy.lang.Script compiledScript)
Closes the compiled script.
|
protected groovy.lang.Script |
doCompile(Script script) |
Object |
execute(Script script,
groovy.lang.Script compiledScript,
Map<String,Object> parameters)
Executes the given compiled script.
|
boolean |
isThreadSafe()
Returns
true if the same compiled script can be used by different threads (note,
parameres or bindings usually make a scripting library not thread safe). |
compileprotected groovy.lang.Script doCompile(Script script) throws ScriptCompilationException
doCompile in class AbstractLocalScriptExecutor<groovy.lang.Script>ScriptCompilationExceptionpublic Object execute(Script script, groovy.lang.Script compiledScript, Map<String,Object> parameters) throws ScriptExecutionException
LocalScriptExecutorScriptExecutionExceptionpublic void close(groovy.lang.Script compiledScript)
LocalScriptExecutorpublic boolean isThreadSafe()
LocalScriptExecutortrue if the same compiled script can be used by different threads (note,
parameres or bindings usually make a scripting library not thread safe).Copyright © GigaSpaces.