@FunctionalInterface public interface TemplateLocator extends WithPriority, ConfigurationAware
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PRIORITY |
Modifier and Type | Method and Description |
---|---|
default Set<String> |
getAllIdentifiers()
This method should return an empty set if it's not possible to collect the names/identifiers.
|
default int |
getPriority() |
Reader |
locate(String name)
The reader is always closed by the engine right after the template source is read.
|
getConfigurationKeys, init
static final int DEFAULT_PRIORITY
Reader locate(String name)
name
- The template identifiernull
if no available template with the given name
existsMustache.getName()
default Set<String> getAllIdentifiers()
EngineConfigurationKey.PRECOMPILE_ALL_TEMPLATES
default int getPriority()
getPriority
in interface WithPriority
Copyright © 2017. All rights reserved.