Interface ScriptingLanguageExecutor

  • All Known Implementing Classes:
    DefaultScriptingLanguageExecutor

    public interface ScriptingLanguageExecutor
    Interface 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 provided ScriptingLanguageExecutor shell 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 provided ScriptingLanguageExecutor shell object.
        Parameters:
        engineName - the name of scripting engine used to evaluate script
        script - 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