Package de.hybris.platform.hac.scripting
Interface ScriptingLanguageExecutor
-
- All Known Implementing Classes:
DefaultScriptingLanguageExecutor
public interface ScriptingLanguageExecutorInterface which provides script execution functionality for Scripting Languages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>executeScript(java.lang.String engineName, java.lang.String script, boolean commit)Execute script with use of providedScriptingLanguageExecutorshell object.
-
-
-
Method Detail
-
executeScript
java.util.Map<java.lang.String,java.lang.Object> executeScript(java.lang.String engineName, java.lang.String script, boolean commit)Execute script with use of providedScriptingLanguageExecutorshell object.- Parameters:
engineName- the name of scripting engine used to evaluate scriptscript- the script body- Returns:
- the resulting map which contains following predefined key/value pairs:
- stacktraceText - contains possible stacktrace text when script execution has failed
- outputText - contains possible standard output of the script execution
- executionResult - contains possible script execution result
-
-