@IocBean(name="$views_thymeleaf",
create="init")
public class ThymeleafViewMakerStarter
extends Object
implements org.nutz.mvc.ViewMaker
| 限定符和类型 | 字段和说明 |
|---|---|
protected AppContext |
appContext |
protected org.nutz.ioc.impl.PropertiesProxy |
conf |
protected String |
contentType |
protected String |
encoding |
static String |
PRE |
protected org.nutz.lang.util.NutMap |
prop |
static String |
PROP_CACHE_ENABLE |
static String |
PROP_CACHE_TTL_MS |
static String |
PROP_CONTENT_TYPE |
static String |
PROP_DIALECTS |
static String |
PROP_DIALECTS_XXX |
static String |
PROP_ENCODING |
static String |
PROP_MODE |
static String |
PROP_PREFIX |
static String |
PROP_SUFFIX |
static String |
PROP_TEMPLATE_ROOT_LOCAL |
protected org.thymeleaf.TemplateEngine |
templateEngine |
| 构造器和说明 |
|---|
ThymeleafViewMakerStarter() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addDialect(String prefix,
String klassNames) |
protected org.thymeleaf.templateresolver.ClassLoaderTemplateResolver |
createClassLoaderTemplateResolver() |
protected org.thymeleaf.templateresolver.FileTemplateResolver |
createFileTemplateResolver(String root) |
org.thymeleaf.TemplateEngine |
getTemplateEngine() |
void |
init() |
org.nutz.mvc.View |
make(org.nutz.ioc.Ioc ioc,
String type,
String value) |
protected org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver |
setupTemplateResolver(org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver templateResolver) |
public static String PRE
@PropDoc(value="\u6e32\u67d3\u6a21\u5f0f", defaultValue="html") public static final String PROP_MODE
@PropDoc(value="\u8def\u5f84\u524d\u7f00", defaultValue="template/") public static final String PROP_PREFIX
@PropDoc(value="\u6a21\u677f\u6587\u4ef6\u540e\u7f00", defaultValue=".html") public static final String PROP_SUFFIX
@PropDoc(value="\u6a21\u677f\u6587\u4ef6\u7f16\u7801", defaultValue="UTF-8") public static final String PROP_ENCODING
@PropDoc(value="\u542f\u7528\u6a21\u677f\u7f13\u5b58", defaultValue="true") public static final String PROP_CACHE_ENABLE
@PropDoc(value="\u6a21\u677f\u7f13\u5b58\u751f\u5b58\u65f6\u957f", defaultValue="3000") public static final String PROP_CACHE_TTL_MS
@PropDoc(value="\u6a21\u677f\u76ee\u5f55\u7684\u7edd\u5bf9\u8def\u5f84,\u82e5\u4e0d\u5b58\u5728,\u56de\u843d\u5230\'\u6a21\u677f\u76ee\u5f55\u7684\u8def\u5f84\'") public static final String PROP_TEMPLATE_ROOT_LOCAL
@PropDoc(value="\u52a0\u8f7ddialects,\u9700\u8981\u5b8c\u6574\u7c7b\u540d,\u9017\u53f7\u5206\u9694") public static final String PROP_DIALECTS
@PropDoc(value="\u5e26\u524d\u7f00\u52a0\u8f7ddialect,\u9700\u8981\u5b8c\u6574\u7c7b\u540d,\u9017\u53f7\u5206\u9694") public static final String PROP_DIALECTS_XXX
@PropDoc(value="\u54cd\u5e94\u7684\u9ed8\u8ba4\u7c7b\u578b", defaultValue="text/html") public static final String PROP_CONTENT_TYPE
@Inject protected org.nutz.ioc.impl.PropertiesProxy conf
@Inject protected AppContext appContext
protected org.nutz.lang.util.NutMap prop
protected org.thymeleaf.TemplateEngine templateEngine
protected String contentType
protected String encoding
protected org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver setupTemplateResolver(org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver templateResolver)
protected org.thymeleaf.templateresolver.ClassLoaderTemplateResolver createClassLoaderTemplateResolver()
protected org.thymeleaf.templateresolver.FileTemplateResolver createFileTemplateResolver(String root)
public void init()
public org.nutz.mvc.View make(org.nutz.ioc.Ioc ioc,
String type,
String value)
make 在接口中 org.nutz.mvc.ViewMaker@IocBean(name="thymeleafTemplateEngine") public org.thymeleaf.TemplateEngine getTemplateEngine()
Copyright © 2020. All rights reserved.