Class DefaultScriptExecutor
java.lang.Object
org.springframework.integration.scripting.jsr223.AbstractScriptExecutor
org.springframework.integration.scripting.jsr223.DefaultScriptExecutor
- All Implemented Interfaces:
ScriptExecutor
- Direct Known Subclasses:
RubyScriptExecutor
Default implementation of the
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.- Since:
- 2.1
- Author:
- David Turanski, Mark Fisher, Gary Russell, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.scripting.jsr223.AbstractScriptExecutor
logger
-
Constructor Summary
ConstructorDescriptionDefaultScriptExecutor
(String language) Create a DefaultScriptExecutor for the specified language name (JSR233 alias). -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
postProcess
(Object result, ScriptEngine scriptEngine, String script, Bindings bindings) Subclasses may implement this to provide any special handling requiredMethods inherited from class org.springframework.integration.scripting.jsr223.AbstractScriptExecutor
executeScript, getScriptEngine
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.integration.scripting.ScriptExecutor
executeScript
-
Constructor Details
-
DefaultScriptExecutor
Create a DefaultScriptExecutor for the specified language name (JSR233 alias).- Parameters:
language
- the scripting language identificator.
-
-
Method Details
-
postProcess
protected Object postProcess(Object result, ScriptEngine scriptEngine, String script, Bindings bindings) Description copied from class:AbstractScriptExecutor
Subclasses may implement this to provide any special handling required- Specified by:
postProcess
in classAbstractScriptExecutor
- Parameters:
result
- the result.scriptEngine
- the engine.script
- the script.bindings
- the bindings.- Returns:
- modified result
-