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, getScriptEngine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeScript
public DefaultScriptExecutor(String language)
language
- the scripting language identificator.protected Object postProcess(Object result, ScriptEngine scriptEngine, String script, Bindings bindings)
AbstractScriptExecutor
postProcess
in class AbstractScriptExecutor
result
- the result.scriptEngine
- the engine.script
- the script.bindings
- the bindings.