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(java.lang.String language)
Create a DefaultScriptExecutor for the specified language name (JSR233 alias).
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
postProcess(java.lang.Object result,
javax.script.ScriptEngine scriptEngine,
java.lang.String script,
javax.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(java.lang.String language)
language - the scripting language identificator.protected java.lang.Object postProcess(java.lang.Object result,
javax.script.ScriptEngine scriptEngine,
java.lang.String script,
javax.script.Bindings bindings)
AbstractScriptExecutorpostProcess in class AbstractScriptExecutorresult - the result.scriptEngine - the engine.script - the script.bindings - the bindings.