public interface ComponentTemplateSource
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
missing template
.Modifier and Type | Method and Description |
---|---|
InvalidationEventHub |
getInvalidationEventHub()
Event hub used to notify listeners that underlying component template files have changed.
|
ComponentTemplate |
getTemplate(ComponentModel componentModel,
ComponentResourceSelector selector)
Provides access to a template.
|
ComponentTemplate getTemplate(ComponentModel componentModel, ComponentResourceSelector selector)
componentModel
- model for the component whose template is to be accessedselector
- defines locale and other information needed to locate templateInvalidationEventHub getInvalidationEventHub()
ComponentTemplates
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.