Package de.hybris.platform.hac.scripting
Interface ScriptingLanguageShell
public interface ScriptingLanguageShell
Wrapper interface which wraps various Scripting Language interpreters for executing scripts. Script executions varies
between different implementations, throws different exceptions and requires different objects for handling external
variables. This interface provides consistent API for all of them.
- See Also:
-
Method Summary
-
Method Details
-
eval
Evaluates provided script and passes provided context object into proper Scripting Language shell.- Parameters:
ctx- the context object which holds external variablesscript- the script body- Returns:
- the result object
- Throws:
ScriptCompilationException- the script compilation exception when script body contains syntax errors
-