public class MapTemplateLocator extends AbstractTemplateLocator
Map.| Modifier and Type | Class and Description |
|---|---|
static class |
MapTemplateLocator.Builder |
configurationDEFAULT_PRIORITY| Constructor and Description |
|---|
MapTemplateLocator(int priority,
Map<String,String> templates) |
MapTemplateLocator(Map<String,String> templates) |
| Modifier and Type | Method and Description |
|---|---|
static MapTemplateLocator.Builder |
builder() |
Set<String> |
getAllIdentifiers()
This method should return an empty set if it's not possible to collect the names/identifiers.
|
Reader |
locate(String templateName)
The reader is always closed by the engine right after the template source is read.
|
String |
toString() |
getPrioritycheckNotInitialized, init, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConfigurationKeys, initpublic MapTemplateLocator(int priority,
Map<String,String> templates)
priority - templates - public Reader locate(String templateName)
TemplateLocatortemplateName - The template identifiernull if no available template with the given name
existsMustache.getName()public Set<String> getAllIdentifiers()
TemplateLocatorEngineConfigurationKey.PRECOMPILE_ALL_TEMPLATESpublic static MapTemplateLocator.Builder builder()
Copyright © 2017. All rights reserved.