public class FileSystemTemplateLocator extends PathTemplateLocator
DEFAULT_SYSTEM_TEMPLATE_LOCATOR_PRIORITYBUILTIN_RESOLVERS_DEFAULT_PRIORITY, BUILTIN_TEMPLATE_LOCATORS_DEFAULT_PRIORITY, EXTENSION_RESOLVERS_DEFAULT_PRIORITY| Constructor and Description |
|---|
FileSystemTemplateLocator(int priority,
String rootPath) |
FileSystemTemplateLocator(int priority,
String rootPath,
String suffix) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAllAvailableNames() |
protected String |
getPathSeparator() |
Reader |
locate(String templateName) |
addSuffix, getPriority, getRootPath, getSuffix, stripSuffix, toStringpublic FileSystemTemplateLocator(int priority,
String rootPath)
priority - rootPath - public Reader locate(String templateName)
templateName - The template namenull if no available template with the given name
existspublic Set<String> getAllAvailableNames()
Configuration#isPrecompileAllTemplates()protected String getPathSeparator()
getPathSeparator in class PathTemplateLocatorCopyright © 2013. All Rights Reserved.