org.apache.tapestry.engine
Interface ITemplateSourceDelegate


public interface ITemplateSourceDelegate

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

The delegate must be threadsafe.

Since:
3.0
Author:
Howard Lewis Ship
See Also:
TemplateSourceImpl

Method Summary
 ComponentTemplate findTemplate(IRequestCycle cycle, IComponent component, Locale locale)
          Invoked by the ITemplateSourceDelegate 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 ITemplateSourceDelegate 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


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.