public class DefaultScriptExecutor extends AbstractScriptExecutor
AbstractScriptExecutor.
Accepts a scripting language for resolving a target ScriptEngine for
evaluation and does nothing with the result in the
postProcess(Object, ScriptEngine, String, Bindings) implementation.logger| Constructor and Description |
|---|
DefaultScriptExecutor(String language)
Create a DefaultScriptExecutor for the specified language name (JSR233 alias).
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
postProcess(Object result,
ScriptEngine scriptEngine,
String script,
Bindings bindings)
Subclasses may implement this to provide any special handling required
|
executeScript, getScriptEngineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteScriptpublic DefaultScriptExecutor(String language)
language - the scripting language identificator.protected Object postProcess(Object result, ScriptEngine scriptEngine, String script, Bindings bindings)
AbstractScriptExecutorpostProcess in class AbstractScriptExecutorresult - the result.scriptEngine - the engine.script - the script.bindings - the bindings.