public static class ClassPathTemplateLocator.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
ClassPathTemplateLocator |
build() |
ClassPathTemplateLocator.Builder |
setClassLoader(ClassLoader classLoader)
If not set, use the TCCL or the CL of this class.
|
ClassPathTemplateLocator.Builder |
setPriority(int priority) |
ClassPathTemplateLocator.Builder |
setRootPath(String rootPath)
If not set, no templates will be available for precompilation.
|
ClassPathTemplateLocator.Builder |
setScanClasspath(boolean scanClasspath)
If set to
true the locator will attempt to scan the
classpath to get all available template identifiers. |
ClassPathTemplateLocator.Builder |
setSuffix(String suffix)
If not set, a full template name must be used.
|
public ClassPathTemplateLocator.Builder setPriority(int priority)
priority - the priority to setpublic ClassPathTemplateLocator.Builder setClassLoader(ClassLoader classLoader)
classLoader - public ClassPathTemplateLocator.Builder setRootPath(String rootPath)
rootPath - public ClassPathTemplateLocator.Builder setScanClasspath(boolean scanClasspath)
true the locator will attempt to scan the
classpath to get all available template identifiers.scanClasspath - TemplateLocator.getAllIdentifiers()public ClassPathTemplateLocator.Builder setSuffix(String suffix)
suffix - public ClassPathTemplateLocator build()
Copyright © 2017. All rights reserved.