| org.apache.tapestry.internal.services.ComponentTemplateSource
All known Subclasses: org.apache.tapestry.internal.services.ComponentTemplateSourceImpl,
ComponentTemplateSource | public interface ComponentTemplateSource extends InvalidationEventHub(Code) | | Provides access to cached
org.apache.tapestry.internal.parser.ComponentTemplate s. The
source acts as a invalidation event hub, and will broadcast invalidation events when any loaded
template resource changes. The listener for these invalidation events is the page source, which
stores cached page instances.
Any search for a template will end with success (a non-null template), but the template returned
may be the
ComponentTemplate.isMissing missing template .
TODO: A more sophisticated, finer grained dependency manager.
|
getTemplate | ComponentTemplate getTemplate(ComponentModel componentModel, Locale locale)(Code) | | Provides access to a template. The template will be parsed as necessary. If no template for
the exact component is found, then the template for the component's parent is returned. In
this way, it is possible for a component to extend the behavior of its super-class without
duplicating the super-class component's template.
In some cases, the empty template will be returned.
Parameters: componentModel - model for the component whose template is to be accessed Parameters: locale - the locale to find the template within the cached template instance |
|
|