Class DefaultScriptEngineResolver
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.el.DefaultScriptEngineResolver
-
- All Implemented Interfaces:
DmnScriptEngineResolver
public class DefaultScriptEngineResolver extends java.lang.Object implements DmnScriptEngineResolver
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,javax.script.ScriptEngine>
scriptEngineCache
protected javax.script.ScriptEngineManager
scriptEngineManager
-
Constructor Summary
Constructors Constructor Description DefaultScriptEngineResolver()
DefaultScriptEngineResolver(javax.script.ScriptEngineManager scriptEngineManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.script.ScriptEngine
getScriptEngineForLanguage(java.lang.String language)
Get a script engine by script engine language.
-
-
-
Method Detail
-
getScriptEngineForLanguage
public javax.script.ScriptEngine getScriptEngineForLanguage(java.lang.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
-
-