Interface ScriptProcessor

    • Method Detail

      • execute

        Object execute​(ScriptLocation location,
                       Map<String,​Object> model)
        Execute script
        Parameters:
        location - the location of the script
        model - context model
        Returns:
        Object the result of the script
      • execute

        Object execute​(NodeRef nodeRef,
                       QName contentProp,
                       Map<String,​Object> model)
        Execute script
        Parameters:
        nodeRef - the script node reference
        contentProp - the content property of the script
        model - the context model
        Returns:
        Object the result of the script
      • execute

        Object execute​(String location,
                       Map<String,​Object> model)
        Execute script
        Parameters:
        location - the classpath string locating the script
        model - the context model
        Returns:
        Object the result of the script
      • executeString

        Object executeString​(String script,
                             Map<String,​Object> model)
        Execute script string
        Parameters:
        script - the script string
        model - the context model
        Returns:
        Obejct the result of the script
      • reset

        void reset()
        Reset the processor - such as clearing any internal caches etc.