org.apache.struts2.osgi
Class BundleFreemarkerManager

java.lang.Object
  extended by org.apache.struts2.views.freemarker.FreemarkerManager
      extended by org.apache.struts2.osgi.BundleFreemarkerManager

public class BundleFreemarkerManager
extends FreemarkerManager

This class extends FreemarkerManager in core to add a template loader (that finds resources inside bundles) to MultiTemplateLoader


Field Summary
 
Fields inherited from class org.apache.struts2.views.freemarker.FreemarkerManager
altMapWrapper, ATTR_TEMPLATE_MODEL, cacheBeanWrapper, config, CONFIG_SERVLET_CONTEXT_KEY, contentType, debug, DEFAULT_CONTENT_TYPE, encoding, EXPIRATION_DATE, INITPARAM_CONTENT_TYPE, INITPARAM_DEBUG, INITPARAM_NOCACHE, INITPARAM_TEMPLATE_PATH, KEY_APPLICATION, KEY_APPLICATION_PRIVATE, KEY_EXCEPTION, KEY_HASHMODEL_PRIVATE, KEY_INCLUDE, KEY_JSP_TAGLIBS, KEY_REQUEST, KEY_REQUEST_PARAMETERS, KEY_REQUEST_PARAMETERS_STRUTS, KEY_REQUEST_PRIVATE, KEY_SESSION, mruMaxStrongSize, nocache, noCharsetInContentType, tagLibraries, templatePath, templateUpdateDelay, wrapper
 
Constructor Summary
BundleFreemarkerManager()
           
 
Method Summary
protected  freemarker.cache.TemplateLoader createTemplateLoader(javax.servlet.ServletContext servletContext, java.lang.String templatePath)
           
 
Methods inherited from class org.apache.struts2.views.freemarker.FreemarkerManager
addSetting, buildScopesHashModel, buildTemplateModel, createConfiguration, createObjectWrapper, getConfig, getConfiguration, getContentType, getDebug, getNocache, getNoCharsetInContentType, getTemplatePath, getWrapper, init, loadSettings, populateContext, setCacheBeanWrapper, setContainer, setEncoding, setMruMaxStrongSize, setTemplateUpdateDelay, setWrapperAltMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleFreemarkerManager

public BundleFreemarkerManager()
Method Detail

createTemplateLoader

protected freemarker.cache.TemplateLoader createTemplateLoader(javax.servlet.ServletContext servletContext,
                                                               java.lang.String templatePath)
Overrides:
createTemplateLoader in class FreemarkerManager


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