Interface ScriptEngineResolver
-
- All Known Implementing Classes:
DefaultScriptEngineResolver
public interface ScriptEngineResolver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addScriptEngineFactory(javax.script.ScriptEngineFactory scriptEngineFactory)
javax.script.ScriptEngine
getScriptEngine(java.lang.String language, boolean resolveFromCache)
Returns a cached script engine or creates a new script engine if no such engine is currently cached.javax.script.ScriptEngineManager
getScriptEngineManager()
-
-
-
Method Detail
-
addScriptEngineFactory
void addScriptEngineFactory(javax.script.ScriptEngineFactory scriptEngineFactory)
-
getScriptEngineManager
javax.script.ScriptEngineManager getScriptEngineManager()
-
getScriptEngine
javax.script.ScriptEngine getScriptEngine(java.lang.String language, boolean resolveFromCache)
Returns a cached script engine or creates a new script engine if no such engine is currently cached.- Parameters:
language
- the language (such as 'groovy' for the script engine)- Returns:
- the cached engine or null if no script engine can be created for the given language
-
-