According to Grails API, we can retrieve all domain classes definition through GrailsApplication as such
import org.codehaus.groovy.grails.commons.ApplicationHolder as AH
AH.application.domainClasses
I have classes defined under src/groovy and would like to do the same. I tried using the follwing code but in vain
import org.codehaus.groovy.grails.commons.ApplicationHolder as AH
AH.application.allClasses
According to Grails API, call to getAllClasses should return all classes loaded by Grails class loader
Class[] getAllClasses() Retrieves all java.lang.Class instances loaded by the Grails class loader
Am i missing something