Groovy Documentation

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

org.codehaus.groovy.grails.commons.GrailsBootstrapClass
  org.codehaus.groovy.grails.commons.GrailsClass
All Superinterfaces:
GrailsClass

public interface GrailsBootstrapClass
extends GrailsClass

Loaded and executed on application load.

Authors:
Graeme Rocher


Method Summary
void callDestroy()

Calls the destroy closure if one exists.

void callInit(ServletContext servletContext)

Calls the init closure if one exists.

groovy.lang.Closure getDestroyClosure()

Returns the destroy closure which is called on application exit.

groovy.lang.Closure getInitClosure()

Returns the init closure which is called on application load.

 
Methods inherited from interface GrailsClass
getClazz, getFullName, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPropertyName, getPropertyValue, getPropertyValue, getReference, getReferenceInstance, getShortName, hasProperty, newInstance
 

Method Detail

callDestroy

public void callDestroy()
Calls the destroy closure if one exists.


callInit

public void callInit(ServletContext servletContext)
Calls the init closure if one exists.


getDestroyClosure

public groovy.lang.Closure getDestroyClosure()
Returns the destroy closure which is called on application exit.
Returns:
A Closure instance


getInitClosure

public groovy.lang.Closure getInitClosure()
Returns the init closure which is called on application load.
Returns:
A Closure instance


 

Groovy Documentation