Class CamundaScriptEngineManager
java.lang.Object
javax.script.ScriptEngineManager
org.camunda.bpm.engine.impl.scripting.engine.CamundaScriptEngineManager
Custom Script Engine Manager that can execute custom logic:
a) after the discovery of the engines on the classpath; the respective engine factories are created b) before the engines are created. If custom logic is needed for a specific engine after the classpath detection, before the engine creation, it can be added to the classes map.
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
executeConfigurationBeforeEngineCreation
(String engineName) Fetches the config logic of a given engine from the mappings and executes it in case it exists.Methods inherited from class javax.script.ScriptEngineManager
get, getBindings, getEngineByExtension, getEngineByMimeType, getEngineByName, getEngineFactories, put, registerEngineExtension, registerEngineMimeType, registerEngineName, setBindings
-
Field Details
-
engineNameToInitLogicMappings
-
-
Constructor Details
-
CamundaScriptEngineManager
public CamundaScriptEngineManager()
-
-
Method Details
-
applyConfigOnEnginesAfterClasspathDiscovery
protected void applyConfigOnEnginesAfterClasspathDiscovery() -
getEngineNamesFoundInClasspath
-
executeConfigurationBeforeEngineCreation
Fetches the config logic of a given engine from the mappings and executes it in case it exists.- Parameters:
engineName
- the given engine name
-
disableGraalVMInterpreterOnlyModeWarnings
protected void disableGraalVMInterpreterOnlyModeWarnings()
-