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,v 1.2 2003/04/17 21:33:52 hlship Exp $
- Author:
- Howard Lewis Ship
- See Also:
DefaultTemplateSource
findTemplate
public 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 objectscomponent
- component (or page) for which a template is neededlocale
- the desired locale for the template