Interface LocalScriptExecutor<T>
- All Known Implementing Classes:
AbstractLocalScriptExecutor,GroovyLocalScriptExecutor,JRubyLocalScriptExecutor,Jsr223LocalScriptExecutor
public interface LocalScriptExecutor<T>
An SPI implementation for script executor ("on the server side") that can handle a specific
script type (or labguage).
- Author:
- kimchy
-
Method Summary
Modifier and TypeMethodDescriptionvoidCloses the compiled script.Compiles the given sctipt.Executes the given compiled script.booleanReturnstrueif the same compiled script can be used by different threads (note, parameres or bindings usually make a scripting library not thread safe).
-
Method Details
-
compile
Compiles the given sctipt.- Throws:
ScriptCompilationException
-
execute
Object execute(Script script, T compiledScript, Map<String, Object> parameters) throws ScriptExecutionExceptionExecutes the given compiled script.- Throws:
ScriptExecutionException
-
close
Closes the compiled script. -
isThreadSafe
boolean isThreadSafe()Returnstrueif the same compiled script can be used by different threads (note, parameres or bindings usually make a scripting library not thread safe).
-