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 `ComponentResourceLocator`.
  Since:
    5.2.0
  See Also:
    `TapestryConstants.TEMPLATE_EXTENSION`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

${project.version} - Copyright © 2003-2015 The Apache Software Foundation.