org.jamon
Class BasicTemplateManager

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

public class BasicTemplateManager
extends java.lang.Object
implements TemplateManager

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.
 
Method Summary
 AbstractTemplateProxy.Intf constructImpl(AbstractTemplateProxy p_proxy)
          Given a proxy, return an instance of the executable code for that proxy's template.
 AbstractTemplateProxy constructProxy(java.lang.String p_path)
          Given a template path, return a proxy for that template.
 
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.
Method Detail

constructImpl

public AbstractTemplateProxy.Intf constructImpl(AbstractTemplateProxy p_proxy)
Description copied from interface: TemplateManager
Given a proxy, return an instance of the executable code for that proxy's template.

Specified by:
constructImpl in interface TemplateManager
Parameters:
p_proxy - a proxy for the template
Returns:
a Template instance

constructProxy

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

Specified by:
constructProxy in interface TemplateManager
Parameters:
p_path - the path to the template
Returns:
a Template proxy instance


jamon