public interface ScriptTemplateConfig
ScriptEngine
for automatic lookup in a web environment.
Detected and used by ScriptTemplateView
.Modifier and Type | Method and Description |
---|---|
java.nio.charset.Charset |
getCharset()
Return the charset used to read script and template files.
|
javax.script.ScriptEngine |
getEngine()
Return the
ScriptEngine to use by the views. |
java.lang.String |
getEngineName()
Return the engine name that will be used to instantiate the
ScriptEngine . |
java.lang.String |
getRenderFunction()
Return the render function name (mandatory).
|
java.lang.String |
getRenderObject()
Return the object where the render function belongs (optional).
|
java.lang.String |
getResourceLoaderPath()
Return the resource loader path(s) via a Spring resource location.
|
java.lang.String[] |
getScripts()
Return the scripts to be loaded by the script engine (library or user provided).
|
java.lang.Boolean |
isSharedEngine()
Return whether to use a shared engine for all threads or whether to create
thread-local engine instances for each thread.
|
javax.script.ScriptEngine getEngine()
ScriptEngine
to use by the views.java.lang.String getEngineName()
ScriptEngine
.java.lang.Boolean isSharedEngine()
java.lang.String[] getScripts()
java.lang.String getRenderObject()
java.lang.String getRenderFunction()
java.nio.charset.Charset getCharset()
java.lang.String getResourceLoaderPath()