Class DefaultScriptEngineResolver

    • Field Summary

      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​javax.script.ScriptEngine> scriptEngineCache  
      protected 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • scriptEngineCache

        protected java.util.Map<java.lang.String,​javax.script.ScriptEngine> scriptEngineCache
      • scriptEngineManager

        protected javax.script.ScriptEngineManager scriptEngineManager
    • Constructor Detail

      • DefaultScriptEngineResolver

        public DefaultScriptEngineResolver​(javax.script.ScriptEngineManager scriptEngineManager)
      • DefaultScriptEngineResolver

        public DefaultScriptEngineResolver()
    • 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 interface DmnScriptEngineResolver
        language - the language of the script engine
        the script engine or null if no script engine for this language exists