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