(Quick Reference)
grailsApplication
目的
Purpose
An instance of the api:org.codehaus.groovy.grails.commons.GrailsApplication class.
使用例
Examples
class BookController {
def list() {
def bookClass = grailsApplication.classLoader.loadClass("Book")
[book: bookClass.newInstance()]
}
}
詳細
Description
The
GrailsApplication
class provides information about the conventions within Grails and access to api:org.codehaus.groovy.grails.commons.GrailsApplication, api:org.codehaus.groovy.grails.commons.GrailsApplication and the api:org.codehaus.groovy.grails.commons.GrailsApplication