Interface ScriptEngineManager
- All Known Implementing Classes:
ScriptEngineManagerImpl
public interface ScriptEngineManager
Holds the
GroovyScriptEngine instances for all sites- Since:
- 4.0
- Author:
- joseross
-
Method Summary
Modifier and TypeMethodDescriptiongroovy.util.GroovyScriptEnginegetScriptEngine(String siteId) Returns theGroovyScriptEnginefor the given site, if it doesn't exist then a new one is createdvoidreloadScriptEngine(String siteId) Creates a newGroovyScriptEnginefor the given site
-
Method Details
-
getScriptEngine
Returns theGroovyScriptEnginefor the given site, if it doesn't exist then a new one is created- Parameters:
siteId- the id fo the site- Returns:
- the script engine instance
-
reloadScriptEngine
Creates a newGroovyScriptEnginefor the given site- Parameters:
siteId- the id of the site
-