Package org.apache.tapestry5.services.templates

## Interface ComponentTemplateLocator

- All Known Implementing Classes:
    `DefaultTemplateLocator`, `PageTemplateLocator`

      @UsesOrderedConfiguration(ComponentTemplateLocator.class)
      public interface ComponentTemplateLocator

  Deprecated.
  Deprecated in 5.3, override or decorate `ComponentResourceSelector` instead.
  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 | 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