public class ClassPathTemplateLocator extends FilePathTemplateLocator
ClassPathTemplateLocator.Builder for
convenience.
Note that for WAR archive, the classpath root is WEB-INF/classes (other parts
of the archive are not available).| Modifier and Type | Class and Description |
|---|---|
static class |
ClassPathTemplateLocator.Builder |
VIRTUAL_PATH_SEPARATOR_KEYconfigurationBUILTIN_RESOLVERS_DEFAULT_PRIORITY, BUILTIN_TEMPLATE_LOCATORS_DEFAULT_PRIORITY, EXTENSION_RESOLVERS_DEFAULT_PRIORITY| Constructor and Description |
|---|
ClassPathTemplateLocator(int priority,
String rootPath) |
ClassPathTemplateLocator(int priority,
String rootPath,
ClassLoader classLoader) |
ClassPathTemplateLocator(int priority,
String rootPath,
String suffix) |
ClassPathTemplateLocator(int priority,
String rootPath,
String suffix,
ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
static ClassPathTemplateLocator.Builder |
builder(int priority) |
Set<String> |
getAllIdentifiers() |
protected File |
getRootDir() |
Reader |
locateRealPath(String realPath) |
constructVirtualPath, checkRootDir, isDirectoryUsable, isFileUsable, listFiles, locateaddSuffix, getConfigurationKeys, getDefaultFileEncoding, getRealPathSeparator, getRootPath, getSuffix, getVirtualPathSeparator, init, stripSuffix, toRealPath, toStringgetPrioritycheckNotInitialized, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitpublic ClassPathTemplateLocator(int priority,
String rootPath)
priority - rootPath - If null, no templates will be available for precompilationpublic ClassPathTemplateLocator(int priority,
String rootPath,
String suffix)
priority - suffix - If null, a full template name must be usedrootPath - If null, no templates will be available for precompilationpublic ClassPathTemplateLocator(int priority,
String rootPath,
ClassLoader classLoader)
priority - rootPath - If null, no templates will be available for precompilationclassLoader - Must not be nullpublic ClassPathTemplateLocator(int priority,
String rootPath,
String suffix,
ClassLoader classLoader)
priority - suffix - If null, a full template name must be usedrootPath - If null, no templates will be available for precompilationclassLoader - Must not be nullpublic Set<String> getAllIdentifiers()
getAllIdentifiers in interface TemplateLocatorgetAllIdentifiers in class FilePathTemplateLocatorEngineConfigurationKey.PRECOMPILE_ALL_TEMPLATESpublic Reader locateRealPath(String realPath)
locateRealPath in class FilePathTemplateLocatorprotected File getRootDir()
getRootDir in class FilePathTemplateLocatorPathTemplateLocator.getRootPath()public static ClassPathTemplateLocator.Builder builder(int priority)
priority - Copyright © 2014. All Rights Reserved.