public class BasicTemplateManager extends AbstractTemplateManager
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 and Description |
|---|
BasicTemplateManager()
Creates a new
BasicTemplateManager using a default ClassLoader. |
BasicTemplateManager(ClassLoader classLoader)
Creates a new
BasicTemplateManager from a specified ClassLoader. |
BasicTemplateManager(ClassLoader classLoader,
TemplateReplacer templateReplacer)
Creates a new
BasicTemplateManager from a specified ClassLoader. |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractTemplateProxy.Intf |
constructImplFromReplacedProxy(AbstractTemplateProxy replacedProxy) |
AbstractTemplateProxy |
constructProxy(String path)
Given a template path, return a proxy for that template.
|
constructImpl, constructImpl, getTemplateReplacerpublic BasicTemplateManager()
BasicTemplateManager using a default ClassLoader.public BasicTemplateManager(ClassLoader classLoader)
BasicTemplateManager from a specified ClassLoader.classLoader - the ClassLoader to use to load templates.public BasicTemplateManager(ClassLoader classLoader, TemplateReplacer templateReplacer)
BasicTemplateManager from a specified ClassLoader.classLoader - the ClassLoader to use to load templates.templateReplacer - the TemplateReplacer to use for replacing templates.protected AbstractTemplateProxy.Intf constructImplFromReplacedProxy(AbstractTemplateProxy replacedProxy)
constructImplFromReplacedProxy in class AbstractTemplateManagerpublic AbstractTemplateProxy constructProxy(String path)
path - the path to the templateTemplate proxy instanceCopyright © 2003-2013 Jamon developers. All Rights Reserved.