Interface ScriptEngineResolver
- All Known Implementing Classes:
DefaultScriptEngineResolver
public interface ScriptEngineResolver
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addScriptEngineFactory
(ScriptEngineFactory scriptEngineFactory) getScriptEngine
(String language, boolean resolveFromCache) Returns a cached script engine or creates a new script engine if no such engine is currently cached.
-
Method Details
-
addScriptEngineFactory
-
getScriptEngineManager
ScriptEngineManager getScriptEngineManager() -
getScriptEngine
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
-