|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.scaffolding.DefaultGrailsTemplateGenerator
class DefaultGrailsTemplateGenerator
Default implementation of the generator that generates grails artifacts (controllers, views etc.) from the domain model.
Property Summary | |
---|---|
static Log |
LOG
|
java.lang.String |
basedir
|
java.lang.String |
domainSuffix
|
java.lang.Object |
engine
|
boolean |
overwrite
|
java.lang.Object |
renderEditor
|
groovy.text.Template |
renderEditorTemplate
|
ResourceLoader |
resourceLoader
|
Constructor Summary | |
DefaultGrailsTemplateGenerator(java.lang.ClassLoader classLoader)
Used by the scripts so that they can pass in their AntBuilder instance. |
|
DefaultGrailsTemplateGenerator()
Default constructor. |
Method Summary | |
---|---|
void
|
generateController(GrailsDomainClass domainClass, java.lang.String destdir)
|
void
|
generateController(GrailsDomainClass domainClass, java.io.Writer out)
|
void
|
generateView(GrailsDomainClass domainClass, java.lang.String viewName, java.lang.String destDir)
|
void
|
generateView(GrailsDomainClass domainClass, java.lang.String viewName, java.io.Writer out)
|
void
|
generateViews(GrailsDomainClass domainClass, java.lang.String destdir)
|
java.lang.Object
|
getTemplateNames()
|
void
|
setResourceLoader(ResourceLoader rl)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
Property Detail |
---|
static final Log LOG
java.lang.String basedir
java.lang.String domainSuffix
java.lang.Object engine
boolean overwrite
java.lang.Object renderEditor
groovy.text.Template renderEditorTemplate
ResourceLoader resourceLoader
Constructor Detail |
---|
DefaultGrailsTemplateGenerator(java.lang.ClassLoader classLoader)
DefaultGrailsTemplateGenerator()
Method Detail |
---|
void generateController(GrailsDomainClass domainClass, java.lang.String destdir)
void generateController(GrailsDomainClass domainClass, java.io.Writer out)
void generateView(GrailsDomainClass domainClass, java.lang.String viewName, java.lang.String destDir)
void generateView(GrailsDomainClass domainClass, java.lang.String viewName, java.io.Writer out)
void generateViews(GrailsDomainClass domainClass, java.lang.String destdir)
java.lang.Object getTemplateNames()
void setResourceLoader(ResourceLoader rl)
Groovy Documentation