Class ScriptEngineExecutorsManager
java.lang.Object
org.eclipse.dirigible.engine.api.script.ScriptEngineExecutorsManager
public class ScriptEngineExecutorsManager extends Object
The Script Engine Executors Manager.
-
Constructor Summary
Constructors Constructor Description ScriptEngineExecutorsManager() -
Method Summary
Modifier and Type Method Description static ObjectexecuteServiceCode(String engineType, String code, Map<Object,Object> executionContext)Execute service code.static ObjectexecuteServiceModule(String engineType, String module, Map<Object,Object> executionContext)Execute service module.static Set<String>getEngineTypes()Returns all the registered engine typesstatic StringgetEngineTypesAsJson()Returns all the registered engine types as JSON
-
Constructor Details
-
ScriptEngineExecutorsManager
public ScriptEngineExecutorsManager()
-
-
Method Details
-
executeServiceModule
public static Object executeServiceModule(String engineType, String module, Map<Object,Object> executionContext) throws ScriptingExceptionExecute service module.- Parameters:
engineType- the engine typemodule- the moduleexecutionContext- the execution context- Returns:
- the object
- Throws:
ScriptingException- the scripting exception
-
executeServiceCode
public static Object executeServiceCode(String engineType, String code, Map<Object,Object> executionContext) throws ScriptingExceptionExecute service code.- Parameters:
engineType- the engine typecode- the codeexecutionContext- the execution context- Returns:
- the object
- Throws:
ScriptingException- the scripting exception
-
getEngineTypes
Returns all the registered engine types- Returns:
- engine types
-
getEngineTypesAsJson
Returns all the registered engine types as JSON- Returns:
- engine types as JSON
-