An instance of the org.codehaus.groovy.grails.commons.GrailsApplication class
class BookController {
def list = {
def bookClass = grailsApplication.classLoader.loadClass("Book")
[book:bookClass.newInstance()]
}
}
The GrailsApplication
class provides information about the conventions within Grails and access to metadata, config and the ClassLoader