org.jamon
Class BasicTemplateManager

java.lang.Object
  extended by org.jamon.AbstractTemplateManager
      extended by org.jamon.BasicTemplateManager
All Implemented Interfaces:
TemplateManager

public class BasicTemplateManager
extends AbstractTemplateManager

A standard implementation of the TemplateManager interface. The BasicTemplateManager is geared towards production deployment; it is designed for performance. It will NOT dynamically examine or recompile template sources. BasicTemplateManager instances are thread-safe. In your applications, you generally want exactly one instance of a BasicTemplateManager (i.e. a singleton), so consider using TemplateManagerSource


Constructor Summary
BasicTemplateManager()
          Creates a new BasicTemplateManager using a default ClassLoader.
BasicTemplateManager(java.lang.ClassLoader p_classLoader)
          Creates a new BasicTemplateManager from a specified ClassLoader.
BasicTemplateManager(java.lang.ClassLoader p_classLoader, TemplateReplacer p_templateReplacer)
          Creates a new BasicTemplateManager from a specified ClassLoader.
 
Method Summary
protected  AbstractTemplateProxy.Intf constructImplFromReplacedProxy(AbstractTemplateProxy p_replacedProxy)
           
 AbstractTemplateProxy constructProxy(java.lang.String p_path)
          Given a template path, return a proxy for that template.
 
Methods inherited from class org.jamon.AbstractTemplateManager
constructImpl, constructImpl, getTemplateReplacer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTemplateManager

public BasicTemplateManager()
Creates a new BasicTemplateManager using a default ClassLoader.


BasicTemplateManager

public BasicTemplateManager(java.lang.ClassLoader p_classLoader)
Creates a new BasicTemplateManager from a specified ClassLoader.

Parameters:
p_classLoader - the ClassLoader to use to load templates.

BasicTemplateManager

public BasicTemplateManager(java.lang.ClassLoader p_classLoader,
                            TemplateReplacer p_templateReplacer)
Creates a new BasicTemplateManager from a specified ClassLoader.

Parameters:
p_classLoader - the ClassLoader to use to load templates.
p_templateReplacer - the TemplateReplacer to use for replacing templates.
Method Detail

constructImplFromReplacedProxy

protected AbstractTemplateProxy.Intf constructImplFromReplacedProxy(AbstractTemplateProxy p_replacedProxy)
Specified by:
constructImplFromReplacedProxy in class AbstractTemplateManager

constructProxy

public AbstractTemplateProxy constructProxy(java.lang.String p_path)
Given a template path, return a proxy for that template.

Parameters:
p_path - the path to the template
Returns:
a Template proxy instance


jamon