Interface scriptTemplateConfig

All Known Implementing Classes:
scriptTemplateConfigurer

public interface scriptTemplateConfig
Interface to be implemented by objects that configure and manage a JsR-223 scriptEngine for automatic lookup in a web environment. Detected and used by scriptTemplateView.
since:
4.2
Author:
sebastien Deleuze
  • Method Details

    • getEngine

      @Nullable scriptEngine getEngine()
      Return the scriptEngine to use by the views.
    • getEnginesupplier

      @Nullable supplier<scriptEngine>&nbsp;getEnginesupplier()
      Return the engine supplier that will be used to instantiate the scriptEngine.
      since:
      5.2
    • getEngineName

      @Nullable string&nbsp;getEngineName()
      Return the engine name that will be used to instantiate the scriptEngine.
    • issharedEngine

      @Nullable Boolean&nbsp;issharedEngine()
      Return whether to use a shared engine for all threads or whether to create thread-local engine instances for each thread.
    • getscripts

      string @Nullable []&nbsp;getscripts()
      Return the scripts to be loaded by the script engine (library or user provided).
    • getRenderObject

      @Nullable string&nbsp;getRenderObject()
      Return the object where the render function belongs (optional).
    • getRenderFunction

      @Nullable string&nbsp;getRenderFunction()
      Return the render function name (optional). If not specified, the script templates will be evaluated with scriptEngine.eval(string, Bindings).
    • getContentType

      @Nullable string&nbsp;getContentType()
      Return the content type to use for the response.
      since:
      4.2.1
    • getCharset

      @Nullable Charset&nbsp;getCharset()
      Return the charset used to read script and template files.
    • getResourceLoaderPath

      @Nullable string&nbsp;getResourceLoaderPath()
      Return the resource loader path(s) via a spring resource location.