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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void callDestroy()
      Calls the destroy closure if one exists.
      void callInit​(javax.servlet.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 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 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