Package org.apache.tapestry5.internal.services.templates

## Class DefaultTemplateLocator

- java.lang.Object
- - org.apache.tapestry5.internal.services.templates.DefaultTemplateLocator

- All Implemented Interfaces:
    `ComponentTemplateLocator`

      public class DefaultTemplateLocator
      extends java.lang.Object
      implements ComponentTemplateLocator

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `DefaultTemplateLocator()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Resource` | `locateTemplate​(ComponentModel model, java.util.Locale locale)` | Locates the template for the given model as a `Resource`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultTemplateLocator

          public DefaultTemplateLocator()

  - ### Method Detail

    - #### locateTemplate

          public Resource locateTemplate​(ComponentModel model,
                                         java.util.Locale locale)

      Description copied from interface: `ComponentTemplateLocator`
      Locates the template for the given model as a `Resource`.
      Specified by:
        `locateTemplate` in interface `ComponentTemplateLocator`
      Parameters:
        `model` - defines the component, especially its base resource
        `locale` - to which the
      Returns:
        localized template resource if found, or null if not found