org.grails.plugin.resource.module
[Groovy] Class ModuleDeclarationsFactory
java.lang.Object
org.grails.plugin.resource.module.ModuleDeclarationsFactory
class ModuleDeclarationsFactory
This factory collects up all the application and plugin resource module declarations
- Authors:
- Luke Daley (ld@ldaley.com)
Field Summary |
private static java.lang.Object |
log
|
Method Summary |
static groovy.lang.Closure
|
getApplicationConfigDeclarations(java.lang.Object grailsApplication, java.lang.String environment = Environment.current.name)
|
static java.util.Map
|
getModuleDeclarations(java.lang.Object grailsApplication, java.lang.String environment = Environment.current.name)
Gathers all of the module declarations (i.e.
|
Methods inherited from class java.lang.Object
|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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() |
log
private static final java.lang.Object log
-
ModuleDeclarationsFactory
ModuleDeclarationsFactory()
-
getApplicationConfigDeclarations
static groovy.lang.Closure getApplicationConfigDeclarations(java.lang.Object grailsApplication, java.lang.String environment = Environment.current.name)
-
getModuleDeclarations
static java.util.Map getModuleDeclarations(java.lang.Object grailsApplication, java.lang.String environment = Environment.current.name)
- Gathers all of the module declarations (i.e. DSL closures) present in the application.
The closures are returned ordered by the name of the script class that defined them, except
for the last item being from the application config if a declaration was present there. They are
keyed by the name of the class that defined them.
Scripts are parsed with environment sensitivity.
Groovy Documentation