| java.lang.Object org.apache.struts2.components.template.TemplateEngineManager
TemplateEngineManager | public class TemplateEngineManager (Code) | | The TemplateEngineManager will return a template engine for the template
|
Inner Class :interface EngineFactory | |
Inner Class :class LazyEngineFactory implements EngineFactory | |
DEFAULT_TEMPLATE_TYPE | final public static String DEFAULT_TEMPLATE_TYPE(Code) | | The default template extenstion is ftl .
|
DEFAULT_TEMPLATE_TYPE_CONFIG_KEY | final public static String DEFAULT_TEMPLATE_TYPE_CONFIG_KEY(Code) | | |
container | Container container(Code) | | |
getTemplateEngine | public TemplateEngine getTemplateEngine(Template template, String templateTypeOverride)(Code) | | Gets the TemplateEngine for the template name. If the template name has an extension (for instance foo.jsp), then
this extension will be used to look up the appropriate TemplateEngine. If it does not have an extension, it will
look for a Configuration setting "struts.ui.templateSuffix" for the extension, and if that is not set, it
will fall back to "ftl" as the default.
Parameters: template - Template used to determine which TemplateEngine to return Parameters: templateTypeOverride - Overrides the default template type the engine. |
registerTemplateEngine | public void registerTemplateEngine(String templateExtension, TemplateEngine templateEngine)(Code) | | Registers the given template engine.
Will add the engine to the existing list of known engines.
Parameters: templateExtension - filename extension (eg. .jsp, .ftl, .vm). Parameters: templateEngine - the engine. |
setContainer | public void setContainer(Container container)(Code) | | |
setDefaultTemplateType | public void setDefaultTemplateType(String type)(Code) | | |
|
|