com.primix.tapestry
Interface ITemplateSource

All Known Implementing Classes:
DefaultTemplateSource

public interface ITemplateSource

A source of localized HTML templates for components. The cache is the means of access for components to load thier templates, which they need not do until just before rendering.

The template cache must be able to locate and parse templates as needed. It may maintain templates in memory.

Version:
$Id: ITemplateSource.java,v 1.6 2001/05/02 14:15:15 hship Exp $
Author:
Howard Ship

Method Summary
 ComponentTemplate getTemplate(IComponent component)
          Locates the template for the component.
 void reset()
          Invoked to have the source clear any internal cache.
 

Method Detail

getTemplate

public ComponentTemplate getTemplate(IComponent component)
                              throws ResourceUnavailableException
Locates the template for the component.
Throws:
ResourceException - if the resource cannot be located or loaded.

reset

public void reset()
Invoked to have the source clear any internal cache. This is most often used when debugging an application.