public abstract class ResourceAwareTemplateEngine extends groovy.text.TemplateEngine
An abstract TemplateEngine that extends the default Groovy TemplateEngine (
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
BEAN_ID |
Type Params | Return Type | Name and description |
---|---|---|
|
public groovy.text.Template |
createTemplate(Resource resource) Creates the specified Template using the given Spring Resource |
|
public abstract groovy.text.Template |
createTemplate(Resource resource, boolean cacheable) Creates the specified Template using the given Spring Resource |
|
public final groovy.text.Template |
createTemplate(java.io.Reader reader) |
|
public abstract groovy.text.Template |
createTemplate(java.io.InputStream inputStream) Unlike groovy.text.TemplateEngine, implementors need to provide an implementation that operates with an InputStream |
|
public groovy.text.Template |
createTemplate(java.lang.String templateText) |
|
public groovy.text.Template |
createTemplate(java.io.File file) |
|
public groovy.text.Template |
createTemplate(java.net.URL url) |
|
public abstract groovy.text.Template |
createTemplateForUri(java.lang.String[] uris) |
|
public abstract int |
mapStackLineNumber(java.lang.String url, int lineNumber) |
Methods inherited from class | Name |
---|---|
class groovy.text.TemplateEngine |
groovy.text.TemplateEngine#createTemplate(java.net.URL), groovy.text.TemplateEngine#createTemplate(java.io.File, java.nio.charset.Charset), groovy.text.TemplateEngine#createTemplate(java.net.URL, java.nio.charset.Charset), groovy.text.TemplateEngine#createTemplate(java.io.File), groovy.text.TemplateEngine#createTemplate(java.io.Reader), groovy.text.TemplateEngine#createTemplate(java.lang.String), groovy.text.TemplateEngine#wait(long, int), groovy.text.TemplateEngine#wait(long), groovy.text.TemplateEngine#wait(), groovy.text.TemplateEngine#equals(java.lang.Object), groovy.text.TemplateEngine#toString(), groovy.text.TemplateEngine#hashCode(), groovy.text.TemplateEngine#getClass(), groovy.text.TemplateEngine#notify(), groovy.text.TemplateEngine#notifyAll() |
Creates the specified Template using the given Spring Resource
resource
- The Spring Resource to create the template forCreates the specified Template using the given Spring Resource
resource
- The Spring Resource to create the template forcacheable
- Whether the resource can be cachedUnlike groovy.text.TemplateEngine, implementors need to provide an implementation that operates with an InputStream
inputStream
- The InputStream