Interface ScriptingManager


  • public interface ScriptingManager
    ScriptingManager. Defines the operations that can be performed on scripts. Scripts are stored in a dedicated cache.
    Since:
    7.2
    Author:
    Tristan Tarrant
    • Method Detail

      • addScript

        void addScript​(String name,
                       String script)
        Adds a new named script.
        Parameters:
        name - the name of the script. The name should contain an extension identifying its language
        script - the source of the script
      • removeScript

        void removeScript​(String name)
        Removes a script.
        Parameters:
        name - the name of the script ro remove
      • getScript

        String getScript​(String scriptName)
        Retrieves the source code of an existing script.
        Parameters:
        scriptName - The name of the script
        Returns:
        the source code of the script
      • getScriptNames

        Set<String> getScriptNames()
        Retrieves names of all available scripts.
        Returns:
        Set containing names of available scripts.