@groovy.transform.CompileStatic class JsonViewTemplateEngine extends ResolvableGroovyTemplateEngine
A template engine for parsing JSON views
| Modifiers | Name | Description |
|---|---|---|
private boolean |
compileStatic |
|
private JsonGenerator |
generator |
|
private JsonApiIdRenderStrategy |
jsonApiIdRenderStrategy |
| Fields inherited from class | Fields |
|---|---|
class ResolvableGroovyTemplateEngine |
NULL_ENTRY, cachedTemplates, classLoader, compilerConfiguration, enableReloading, extension, linkGenerator, mappingContext, messageSource, mimeUtility, proxyHandler, resolveCache, shouldCache, templateCounter, templateResolver, viewConfiguration, viewUriResolver |
| Type | Name and description |
|---|---|
JsonGenerator |
generator |
JsonApiIdRenderStrategy |
jsonApiIdRenderStrategy |
| Constructor and description |
|---|
JsonViewTemplateEngine
()Constructs a JsonTemplateEngine with the default configuration |
JsonViewTemplateEngine
(java.lang.ClassLoader classLoader)Constructs a JsonTemplateEngine with the default configuration |
JsonViewTemplateEngine
(ViewConfiguration configuration, java.lang.ClassLoader classLoader)Constructs a JsonTemplateEngine with a custom base class |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected WritableScriptTemplate |
createTemplate(java.lang.Class<? extends groovy.text.Template> cls, java.io.File sourceFile) |
|
java.lang.String |
getDynamicTemplatePrefix() |
|
protected ViewsTransform |
newViewsTransform() |
|
protected void |
prepareCustomizers(org.codehaus.groovy.control.CompilerConfiguration compilerConfiguration) |
Constructs a JsonTemplateEngine with the default configuration
Constructs a JsonTemplateEngine with the default configuration
Constructs a JsonTemplateEngine with a custom base class
baseClassName - The name of the base classGroovy Documentation