Interface ScriptEngineManager

  • All Known Implementing Classes:
    ScriptEngineManagerImpl

    public interface ScriptEngineManager
    Holds the GroovyScriptEngine instances for all sites
    Since:
    4.0
    Author:
    joseross
    • Method Detail

      • getScriptEngine

        groovy.util.GroovyScriptEngine getScriptEngine​(String siteId)
        Returns the GroovyScriptEngine for 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

        void reloadScriptEngine​(String siteId)
        Creates a new GroovyScriptEngine for the given site
        Parameters:
        siteId - the id of the site