com.primix.tapestry.engine
Class DefaultTemplateSource
java.lang.Object
|
+--com.primix.tapestry.engine.DefaultTemplateSource
- All Implemented Interfaces:
- IRenderDescription, ITemplateSource
- public class DefaultTemplateSource
- extends java.lang.Object
- implements ITemplateSource, IRenderDescription
Default implementation of ITemplateSource
. Templates, once parsed,
stay in memory until explicitly cleared.
An instance of this class acts as a singleton shared by all sessions, so it
must be threadsafe.
- Version:
- $Id: DefaultTemplateSource.java,v 1.14 2001/09/12 20:45:12 hship Exp $
- Author:
- Howard Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DefaultTemplateSource
public DefaultTemplateSource(IResourceResolver resolver)
reset
public void reset()
- Clears the template cache. This is used during debugging.
- Specified by:
reset
in interface ITemplateSource
getTemplate
public ComponentTemplate getTemplate(IComponent component)
throws ResourceUnavailableException
- Reads the template for the component.
Returns null if the template can't be found.
- Specified by:
getTemplate
in interface ITemplateSource
- Following copied from interface:
com.primix.tapestry.ITemplateSource
- Throws:
ResourceException
- if the resource cannot be located or loaded.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
renderDescription
public void renderDescription(IResponseWriter writer)
- Description copied from interface:
IRenderDescription
- Object should render a description of itself to the writer.
- Specified by:
renderDescription
in interface IRenderDescription
- Since:
- 1.0.6