org.apache.tapestry5.services.templates
Interface ComponentTemplateLocator

All Known Implementing Classes:
DefaultTemplateLocator, PageTemplateLocator

Deprecated. Deprecated in 5.3, override or decorate ComponentResourceSelector instead.

@UsesOrderedConfiguration(value=ComponentTemplateLocator.class)
public interface ComponentTemplateLocator

Chain-of-command interface used to locate page and component templates. Contributions to this service support alternate naming schemes for template files, or alternate locations in which to search for template files.

This service was introduced in Tapestry 5.2, but deprecated in Tapestry 5.3. It is utilized by the default implementation of ComponentResourceSelector.

Since:
5.2.0
See Also:
TapestryConstants.TEMPLATE_EXTENSION

Method Summary
 Resource locateTemplate(ComponentModel model, Locale locale)
          Deprecated. Locates the template for the given model as a Resource.
 

Method Detail

locateTemplate

Resource locateTemplate(ComponentModel model,
                        Locale locale)
Deprecated. 
Locates the template for the given model as a Resource.

Parameters:
model - defines the component, especially its base resource
locale - to which the
Returns:
localized template resource if found, or null if not found


Copyright © 2003-2012 The Apache Software Foundation.