Class CamundaScriptEngineManager

java.lang.Object
javax.script.ScriptEngineManager
org.camunda.bpm.engine.impl.scripting.engine.CamundaScriptEngineManager

public class CamundaScriptEngineManager extends ScriptEngineManager
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 Details

    • engineNameToInitLogicMappings

      protected final Map<String,Runnable> engineNameToInitLogicMappings
  • Constructor Details

    • CamundaScriptEngineManager

      public CamundaScriptEngineManager()
  • Method Details

    • applyConfigOnEnginesAfterClasspathDiscovery

      protected void applyConfigOnEnginesAfterClasspathDiscovery()
    • getEngineNamesFoundInClasspath

      protected List<String> getEngineNamesFoundInClasspath()
    • executeConfigurationBeforeEngineCreation

      protected void executeConfigurationBeforeEngineCreation(String engineName)
      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()