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.GrailsClass
Loaded and executed on application load.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalls the destroy closure if one exists.voidcallInit(jakarta.servlet.ServletContext servletContext) Calls the init closure if one exists.groovy.lang.ClosureReturns the destroy closure which is called on application exit.groovy.lang.ClosureReturns the init closure which is called on application load.Methods inherited from interface grails.core.support.GrailsApplicationAware
setGrailsApplicationMethods inherited from interface grails.core.GrailsClass
getApplication, getClazz, getFullName, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPluginName, getPropertyName, getPropertyValue, getPropertyValue, getReferenceInstance, getShortName, hasProperty, isAbstract, newInstance
-
Method Details
-
callInit
void callInit(jakarta.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
-