クラス AbstractScriptExecutor
java.lang.ObjectSE
org.springframework.integration.scripting.jsr223.AbstractScriptExecutor
- 実装されているすべてのインターフェース:
ScriptExecutor
public abstract class AbstractScriptExecutor extends ObjectSE implements ScriptExecutor
ScriptExecutor の基本クラス。- 導入:
- 2.1
- 作成者:
- David Turanski, Mark Fisher, Artem Bilan, Gary Russell
フィールドのサマリー
コンストラクターの概要
コンストラクター 修飾子 コンストラクター 説明 protectedAbstractScriptExecutor(StringSE language)protectedAbstractScriptExecutor(ScriptEngineSE scriptEngine)メソッドのサマリー
修飾子と型 メソッド 説明 ObjectSEexecuteScript(ScriptSource scriptSource, MapSE<StringSE,ObjectSE> variables)オプションのバインディングvariablesを使用して、提供されたScriptSourceからスクリプトを実行します。ScriptEngineSEgetScriptEngine()protected abstract ObjectSEpostProcess(ObjectSE result, ScriptEngineSE scriptEngine, StringSE script, BindingsSE bindings)サブクラスはこれを実装して、必要な特別な処理を提供できます。
フィールドの詳細
コンストラクターの詳細
メソッドの詳細
getScriptEngine
executeScript
@Nullable public ObjectSE executeScript(ScriptSource scriptSource, MapSE<StringSE,ObjectSE> variables)インターフェースからコピーされた説明:ScriptExecutorオプションのバインディングvariablesを使用して、提供されたScriptSourceからスクリプトを実行します。- 次で指定:
- インターフェース
ScriptExecutorのexecuteScript - パラメーター:
scriptSource- スクリプトソース。variables- 変数。- 戻り値:
- 実行の結果。
postProcess
protected abstract ObjectSE postProcess(ObjectSE result, ScriptEngineSE scriptEngine, StringSE script, BindingsSE bindings)サブクラスはこれを実装して、必要な特別な処理を提供できます。- パラメーター:
result- 結果。scriptEngine- そのエンジン。script- スクリプト。bindings- バインディング。- 戻り値:
- 変更された結果