|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroovy.text.TemplateEngine
org.codehaus.groovy.grails.support.ResourceAwareTemplateEngine
public abstract class ResourceAwareTemplateEngine
An abstract TemplateEngine that extends the default Groovy TemplateEngine (@see groovy.text.TemplateEngine) and provides the ability to create templates from the Spring Resource API
| Constructor Summary | |
|---|---|
ResourceAwareTemplateEngine()
|
|
| Method Summary | |
|---|---|
groovy.text.Template |
createTemplate(java.io.File file)
|
abstract groovy.text.Template |
createTemplate(java.io.InputStream inputStream)
Unlike groovy.text.TemplateEngine, implementors need to provide an implementation that operates with an InputStream |
groovy.text.Template |
createTemplate(java.io.Reader reader)
|
groovy.text.Template |
createTemplate(org.springframework.core.io.Resource resource)
Creates the specified Template using the given Spring Resource |
abstract groovy.text.Template |
createTemplate(org.springframework.core.io.Resource resource,
boolean cacheable)
Creates the specified Template using the given Spring Resource |
groovy.text.Template |
createTemplate(java.lang.String templateText)
|
groovy.text.Template |
createTemplate(java.net.URL url)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceAwareTemplateEngine()
| Method Detail |
|---|
public groovy.text.Template createTemplate(org.springframework.core.io.Resource resource)
throws java.io.IOException,
java.lang.ClassNotFoundException
resource - The Spring Resource to create the template for
java.io.IOException - Thrown when there was an error reading the Template
java.lang.ClassNotFoundException - Thrown when there was a problem loading the Template into a class
public abstract groovy.text.Template createTemplate(org.springframework.core.io.Resource resource,
boolean cacheable)
resource - The Spring Resource to create the template forcacheable - Whether the resource can be cached
java.io.IOException - Thrown when there was an error reading the Template
java.lang.ClassNotFoundException - Thrown when there was a problem loading the Template into a class
public final groovy.text.Template createTemplate(java.io.Reader reader)
throws java.io.IOException
createTemplate in class groovy.text.TemplateEnginejava.io.IOException
public abstract groovy.text.Template createTemplate(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - The InputStream
java.io.IOException - Thrown when an IO error occurs reading the stream
public groovy.text.Template createTemplate(java.lang.String templateText)
throws org.codehaus.groovy.control.CompilationFailedException,
java.lang.ClassNotFoundException,
java.io.IOException
createTemplate in class groovy.text.TemplateEngineorg.codehaus.groovy.control.CompilationFailedException
java.lang.ClassNotFoundException
java.io.IOException
public groovy.text.Template createTemplate(java.io.File file)
throws org.codehaus.groovy.control.CompilationFailedException,
java.lang.ClassNotFoundException,
java.io.IOException
createTemplate in class groovy.text.TemplateEngineorg.codehaus.groovy.control.CompilationFailedException
java.lang.ClassNotFoundException
java.io.IOException
public groovy.text.Template createTemplate(java.net.URL url)
throws org.codehaus.groovy.control.CompilationFailedException,
java.lang.ClassNotFoundException,
java.io.IOException
createTemplate in class groovy.text.TemplateEngineorg.codehaus.groovy.control.CompilationFailedException
java.lang.ClassNotFoundException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||