Class DefaultScriptEngineResolver
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.el.DefaultScriptEngineResolver
-
- All Implemented Interfaces:
DmnScriptEngineResolver
public class DefaultScriptEngineResolver extends Object implements DmnScriptEngineResolver
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,ScriptEngine>
scriptEngineCache
protected ScriptEngineManager
scriptEngineManager
-
Constructor Summary
Constructors Constructor Description DefaultScriptEngineResolver()
DefaultScriptEngineResolver(ScriptEngineManager scriptEngineManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScriptEngine
getScriptEngineForLanguage(String language)
Get a script engine by script engine language.
-
-
-
Field Detail
-
scriptEngineCache
protected Map<String,ScriptEngine> scriptEngineCache
-
scriptEngineManager
protected ScriptEngineManager scriptEngineManager
-
-
Constructor Detail
-
DefaultScriptEngineResolver
public DefaultScriptEngineResolver(ScriptEngineManager scriptEngineManager)
-
DefaultScriptEngineResolver
public DefaultScriptEngineResolver()
-
-
Method Detail
-
getScriptEngineForLanguage
public ScriptEngine getScriptEngineForLanguage(String language)
Description copied from interface:DmnScriptEngineResolver
Get a script engine by script engine language.- Specified by:
getScriptEngineForLanguage
in interfaceDmnScriptEngineResolver
- Parameters:
language
- the language of the script engine- Returns:
- the script engine or null if no script engine for this language exists
-
-