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_KEYBUILTIN_RESOLVERS_DEFAULT_PRIORITY, BUILTIN_TEMPLATE_LOCATORS_DEFAULT_PRIORITY, EXTENSION_RESOLVERS_DEFAULT_PRIORITY| Constructor and Description |
|---|
ClassPathTemplateLocator(int priority,
java.lang.String rootPath) |
ClassPathTemplateLocator(int priority,
java.lang.String rootPath,
java.lang.ClassLoader classLoader) |
ClassPathTemplateLocator(int priority,
java.lang.String rootPath,
java.lang.String suffix) |
ClassPathTemplateLocator(int priority,
java.lang.String rootPath,
java.lang.String suffix,
java.lang.ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
static ClassPathTemplateLocator.Builder |
builder(int priority) |
java.util.Set<java.lang.String> |
getAllIdentifiers() |
protected java.io.File |
getRootDir() |
java.io.Reader |
locateRealPath(java.lang.String realPath) |
constructVirtualPath, checkRootDir, isDirectoryUsable, isFileUsable, listFiles, locateaddSuffix, getConfigurationKeys, getDefaultFileEncoding, getRealPathSeparator, getRootPath, getSuffix, getVirtualPathSeparator, init, stripSuffix, toRealPath, toStringgetPrioritycheckNotInitializedpublic ClassPathTemplateLocator(int priority,
java.lang.String rootPath)
priority - rootPath - If null, no templates will be available for precompilationpublic ClassPathTemplateLocator(int priority,
java.lang.String rootPath,
java.lang.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,
java.lang.String rootPath,
java.lang.ClassLoader classLoader)
priority - rootPath - If null, no templates will be available for precompilationclassLoader - Must not be nullpublic ClassPathTemplateLocator(int priority,
java.lang.String rootPath,
java.lang.String suffix,
java.lang.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 java.util.Set<java.lang.String> getAllIdentifiers()
getAllIdentifiers in interface TemplateLocatorgetAllIdentifiers in class FilePathTemplateLocatorEngineConfigurationKey.PRECOMPILE_ALL_TEMPLATESpublic java.io.Reader locateRealPath(java.lang.String realPath)
locateRealPath in class FilePathTemplateLocatorprotected java.io.File getRootDir()
getRootDir in class FilePathTemplateLocatorPathTemplateLocator.getRootPath()public static ClassPathTemplateLocator.Builder builder(int priority)
priority - Copyright © 2014. All Rights Reserved.