org.apache.tiles.request.freemarker.servlet
Class SharedVariableLoaderFreemarkerServlet
java.lang.Object
FreemarkerServlet
org.apache.tiles.request.freemarker.servlet.SharedVariableLoaderFreemarkerServlet
- Direct Known Subclasses:
- AttributeValueFreemarkerServlet
public class SharedVariableLoaderFreemarkerServlet
- extends FreemarkerServlet
Extends FreemarkerServlet to load Tiles directives as a shared variable.
- Version:
- $Rev: 1306435 $ $Date: 2012-03-28 11:39:11 -0400 (Wed, 28 Mar 2012) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CUSTOM_SHARED_VARIABLE_FACTORIES_INIT_PARAM
public static final String CUSTOM_SHARED_VARIABLE_FACTORIES_INIT_PARAM
- The init parameter under which the factories will be put. The value of the parameter
must be a semicolon (;) separated list of couples, each member of the couple must
be separated by commas (,).
- See Also:
- Constant Field Values
SharedVariableLoaderFreemarkerServlet
public SharedVariableLoaderFreemarkerServlet()
init
public void init(ServletConfig config)
throws ServletException
- Throws:
ServletException
addSharedVariableFactory
public void addSharedVariableFactory(String variableName,
SharedVariableFactory factory)
- Adds anew shared variable factory in a manual way.
- Parameters:
variableName
- The name of the shared variable.factory
- The shared variable factory.
createConfiguration
protected Configuration createConfiguration()
-
createTemplateLoader
protected TemplateLoader createTemplateLoader(String templatePath)
-
Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.