Package grails.web.servlet.bootstrap
Interface GrailsBootstrapClass
-
- All Superinterfaces:
org.springframework.beans.factory.Aware,grails.core.support.GrailsApplicationAware,grails.core.GrailsClass
- All Known Implementing Classes:
DefaultGrailsBootstrapClass
public interface GrailsBootstrapClass extends grails.core.GrailsClassLoaded and executed on application load.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcallDestroy()Calls the destroy closure if one exists.voidcallInit(javax.servlet.ServletContext servletContext)Calls the init closure if one exists.groovy.lang.ClosuregetDestroyClosure()Returns the destroy closure which is called on application exit.groovy.lang.ClosuregetInitClosure()Returns the init closure which is called on application load.-
Methods inherited from interface grails.core.GrailsClass
getApplication, getClazz, getFullName, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPluginName, getPropertyName, getPropertyValue, getPropertyValue, getReferenceInstance, getShortName, hasProperty, isAbstract, newInstance
-
-
-
-
Method Detail
-
callInit
void callInit(javax.servlet.ServletContext servletContext)
Calls the init closure if one exists.
-
callDestroy
void callDestroy()
Calls the destroy closure if one exists.
-
getInitClosure
groovy.lang.Closure getInitClosure()
Returns the init closure which is called on application load.- Returns:
- A Closure instance
-
getDestroyClosure
groovy.lang.Closure getDestroyClosure()
Returns the destroy closure which is called on application exit.- Returns:
- A Closure instance
-
-