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 SummaryFields inherited from class org.springframework.integration.scripting.jsr223.AbstractScriptExecutorlogger
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultScriptExecutor(String language) Create a DefaultScriptExecutor for the specified language name (JSR233 alias).
- 
Method SummaryModifier and TypeMethodDescriptionprotected ObjectpostProcess(Object result, ScriptEngine scriptEngine, String script, @Nullable Bindings bindings) Subclasses may implement this to provide any special handling requiredMethods inherited from class org.springframework.integration.scripting.jsr223.AbstractScriptExecutorexecuteScript, getScriptEngineMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.scripting.ScriptExecutorexecuteScript
- 
Constructor Details- 
DefaultScriptExecutorCreate a DefaultScriptExecutor for the specified language name (JSR233 alias).- Parameters:
- language- the scripting language identificator.
 
 
- 
- 
Method Details- 
postProcessprotected Object postProcess(Object result, ScriptEngine scriptEngine, String script, @Nullable Bindings bindings) Description copied from class:AbstractScriptExecutorSubclasses may implement this to provide any special handling required- Specified by:
- postProcessin class- AbstractScriptExecutor
- Parameters:
- result- the result.
- scriptEngine- the engine.
- script- the script.
- bindings- the bindings.
- Returns:
- modified result
 
 
-