org.apache.struts2.components.template
Class FreemarkerTemplateEngine

java.lang.Object
  extended by org.apache.struts2.components.template.BaseTemplateEngine
      extended by org.apache.struts2.components.template.FreemarkerTemplateEngine
All Implemented Interfaces:
TemplateEngine

public class FreemarkerTemplateEngine
extends BaseTemplateEngine

Freemarker based template engine.


Field Summary
protected  FreemarkerManager freemarkerManager
           
 
Fields inherited from class org.apache.struts2.components.template.BaseTemplateEngine
DEFAULT_THEME_PROPERTIES_FILE_NAME
 
Constructor Summary
FreemarkerTemplateEngine()
           
 
Method Summary
protected  java.lang.String getSuffix()
           
 void renderTemplate(TemplateRenderingContext templateContext)
          Renders the template
 void setFreemarkerManager(FreemarkerManager mgr)
           
 
Methods inherited from class org.apache.struts2.components.template.BaseTemplateEngine
getFinalTemplateName, getThemePropertiesFileName, getThemeProps
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

freemarkerManager

protected FreemarkerManager freemarkerManager
Constructor Detail

FreemarkerTemplateEngine

public FreemarkerTemplateEngine()
Method Detail

setFreemarkerManager

public void setFreemarkerManager(FreemarkerManager mgr)

renderTemplate

public void renderTemplate(TemplateRenderingContext templateContext)
                    throws java.lang.Exception
Description copied from interface: TemplateEngine
Renders the template

Parameters:
templateContext - context for the given template.
Throws:
java.lang.Exception - is thrown if there is a failure when rendering.

getSuffix

protected java.lang.String getSuffix()
Specified by:
getSuffix in class BaseTemplateEngine


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.