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 Type
    Method
    Description
    groovy.util.GroovyScriptEngine
    Returns the GroovyScriptEngine for the given site, if it doesn't exist then a new one is created
    void
    Creates a new GroovyScriptEngine for the given site
  • Method Details

    • 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