@groovy.transform.CompileStatic @groovy.util.logging.Slf4j class GenericGroovyTemplateResolver extends java.lang.Object
A generic TemplateResolver for resolving Groovy templates that are compiled into classes
Modifiers | Name | Description |
---|---|---|
static char |
DOT_CHAR |
|
static char |
SLASH_CHAR |
The base directory to load templates in development mode |
static char |
UNDERSCORE_CHAR |
Type | Name and description |
---|---|
java.io.File |
baseDir |
java.lang.ClassLoader |
classLoader The class loader to use for template loading in production mode |
java.lang.String |
packageName The base package to load templates as classes in production mode |
Type | Name and description |
---|---|
java.net.URL |
resolveTemplate(java.lang.String path) |
java.lang.Class<? extends groovy.text.Template> |
resolveTemplateClass(java.lang.String path) |
java.lang.Class<? extends groovy.text.Template> |
resolveTemplateClass(java.lang.String packageName, java.lang.String path) |
static java.lang.String |
resolveTemplateName(java.lang.String scope, java.lang.String path) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The base directory to load templates in development mode
The class loader to use for template loading in production mode
The base package to load templates as classes in production mode