接口 ScriptTemplateConfig
- 所有已知实现类:
ScriptTemplateConfigurer
public interface ScriptTemplateConfig
Interface to be implemented by objects that configure and manage a JSR-223ScriptEngine
for automatic lookup in a web environment. Detected and used byScriptTemplateView
.- 从以下版本开始:
- 4.2
- 作者:
- Sebastien Deleuze
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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 theScriptEngine
to use by the views.String
getEngineName()
Return the engine name that will be used to instantiate theScriptEngine
.String
getRenderFunction()
Return the render function name (mandatory).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.
方法详细资料
getEngine
ScriptEngine getEngine()
Return theScriptEngine
to use by the views.
getEngineName
String getEngineName()
Return the engine name that will be used to instantiate theScriptEngine
.
isSharedEngine
Boolean isSharedEngine()
Return whether to use a shared engine for all threads or whether to create thread-local engine instances for each thread.
getScripts
String[] getScripts()
Return the scripts to be loaded by the script engine (library or user provided).
getRenderObject
String getRenderObject()
Return the object where the render function belongs (optional).
getRenderFunction
String getRenderFunction()
Return the render function name (mandatory).
getContentType
String getContentType()
Return the content type to use for the response.- 从以下版本开始:
- 4.2.1
getCharset
Charset getCharset()
Return the charset used to read script and template files.
getResourceLoaderPath
String getResourceLoaderPath()
Return the resource loader path(s) via a Spring resource location.