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 Type
    Method
    Description
    void
    Calls the destroy closure if one exists.
    void
    callInit(jakarta.servlet.ServletContext servletContext)
    Calls the init closure if one exists.
    groovy.lang.Closure
    Returns the destroy closure which is called on application exit.
    groovy.lang.Closure
    Returns the init closure which is called on application load.

    Methods inherited from interface grails.core.support.GrailsApplicationAware

    setGrailsApplication

    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 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