Groovy Documentation

org.codehaus.groovy.grails.commons
[Java] Interface GrailsApplication

org.springframework.context.ApplicationContextAware
  org.codehaus.groovy.grails.commons.GrailsApplication
All Superinterfaces:
ApplicationContextAware

public interface GrailsApplication
extends ApplicationContextAware

The main interface representing a running Grails application. This interface's main purpose is to provide a mechanism for analysing the conventions within a Grails application as well as providing metadata and information about the execution environment.

The GrailsApplication interface interfacts with ArtefactHandler instances which are capable of analysing different artefact types (controllers, domain classes etc.) and introspecting the artefact conventions

Implementors of this inteface should be aware that a GrailsApplication is only initialised when the initialise() method is called. In other words GrailsApplication instances are lazily initialised by the Grails runtime.

Authors:
Graeme Rocher
Steven Devijver
See Also:
initialise()
ArtefactHandler
Since:
0.1


Groovy Documentation