|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts2.components.template.TemplateEngineManager
public class TemplateEngineManager
The TemplateEngineManager will return a template engine for the template
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_TEMPLATE_TYPE
The default template extenstion is ftl . |
static java.lang.String |
DEFAULT_TEMPLATE_TYPE_CONFIG_KEY
|
Method Summary | |
---|---|
static TemplateEngine |
getTemplateEngine(Template template,
java.lang.String templateTypeOverride)
Gets the TemplateEngine for the template name. |
static void |
registerTemplateEngine(java.lang.String templateExtension,
TemplateEngine templateEngine)
Registers the given template engine. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_TEMPLATE_TYPE_CONFIG_KEY
public static final java.lang.String DEFAULT_TEMPLATE_TYPE
ftl
.
Method Detail |
---|
public static void registerTemplateEngine(java.lang.String templateExtension, TemplateEngine templateEngine)
templateExtension
- filename extension (eg. .jsp, .ftl, .vm).templateEngine
- the engine.public static TemplateEngine getTemplateEngine(Template template, java.lang.String templateTypeOverride)
template
- Template used to determine which TemplateEngine to returntemplateTypeOverride
- Overrides the default template type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |