org.jamon
Class RecompilingTemplateManager

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

public class RecompilingTemplateManager
extends Object
implements TemplateManager

An implementation of the TemplateManager interface which supports dynamic regeneration and recompilation of templates as they are changed, much as JSP does. RecompilingTemplateManager instances are thread-safe. In your applications, you generally want exactly one instance of a RecompilingTemplateManager (i.e. a singleton). Configuration of a RecompilingTemplateManager occurs only at construction time, and is determined by the RecompilingTemplateManager.Data object passed to the constructor. The properties on the Data are:


Nested Class Summary
static class RecompilingTemplateManager.Data
           
 
Constructor Summary
RecompilingTemplateManager()
           
RecompilingTemplateManager(RecompilingTemplateManager.Data p_data)
           
 
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(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

RecompilingTemplateManager

public RecompilingTemplateManager()

RecompilingTemplateManager

public RecompilingTemplateManager(RecompilingTemplateManager.Data p_data)
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(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