org.apache.tapestry.engine
Interface ITemplateSourceDelegate

All Known Implementing Classes:
NullTemplateSourceDelegate

public interface ITemplateSourceDelegate

Acts as a delegate to the ITemplateSource, providing access to page and component templates after the normal search mechanisms have failed.

The delegate must be threadsafe.

Since:
3.0
Version:
$Id: ITemplateSourceDelegate.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship
See Also:
DefaultTemplateSource

Method Summary
 ComponentTemplate findTemplate(IRequestCycle cycle, IComponent component, Locale locale)
          Invoked by the ITemplateSource when a template can't be found by normal means (i.e., in the normal locations).
 

Method Detail

findTemplate

ComponentTemplate findTemplate(IRequestCycle cycle,
                               IComponent component,
                               Locale locale)
Invoked by the ITemplateSource when a template can't be found by normal means (i.e., in the normal locations). This method should find the template. The result may be null. The delegate is responsible for caching the result.

Parameters:
cycle - for access to Tapestry and Servlet API objects
component - component (or page) for which a template is needed
locale - the desired locale for the template