Class DefaultGrailsBootstrapClass

java.lang.Object
org.grails.core.AbstractGrailsClass
org.grails.web.servlet.boostrap.DefaultGrailsBootstrapClass
All Implemented Interfaces:
grails.core.GrailsClass, grails.core.support.GrailsApplicationAware, GrailsBootstrapClass, org.springframework.beans.factory.Aware

public class DefaultGrailsBootstrapClass extends org.grails.core.AbstractGrailsClass implements GrailsBootstrapClass
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.grails.core.AbstractGrailsClass

    grailsApplication
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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 class org.grails.core.AbstractGrailsClass

    getApplication, getClazz, getFullName, getLogicalPropertyName, getMetaClass, getMetaProperties, getName, getNaturalName, getPackageName, getPluginName, getPropertyDescriptors, getPropertyName, getPropertyOrStaticPropertyOrFieldValue, getPropertyType, getPropertyValue, getPropertyValue, getPropertyValueObject, getShortName, getStaticPropertyValue, hasMetaMethod, hasMetaMethod, hasMetaProperty, hasProperty, isAbstract, isActionMethod, isReadableProperty, newInstance, setGrailsApplication, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    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, getShortName, hasProperty, isAbstract, newInstance
  • Field Details

  • Constructor Details

    • DefaultGrailsBootstrapClass

      public DefaultGrailsBootstrapClass(Class<?> clazz)
  • Method Details

    • getReferenceInstance

      public Object getReferenceInstance()
      Specified by:
      getReferenceInstance in interface grails.core.GrailsClass
      Overrides:
      getReferenceInstance in class org.grails.core.AbstractGrailsClass
    • getInitClosure

      public groovy.lang.Closure<?> getInitClosure()
      Description copied from interface: GrailsBootstrapClass
      Returns the init closure which is called on application load.
      Specified by:
      getInitClosure in interface GrailsBootstrapClass
      Returns:
      A Closure instance
    • getDestroyClosure

      public groovy.lang.Closure<?> getDestroyClosure()
      Description copied from interface: GrailsBootstrapClass
      Returns the destroy closure which is called on application exit.
      Specified by:
      getDestroyClosure in interface GrailsBootstrapClass
      Returns:
      A Closure instance
    • callInit

      public void callInit(jakarta.servlet.ServletContext servletContext)
      Description copied from interface: GrailsBootstrapClass
      Calls the init closure if one exists.
      Specified by:
      callInit in interface GrailsBootstrapClass
    • callDestroy

      public void callDestroy()
      Description copied from interface: GrailsBootstrapClass
      Calls the destroy closure if one exists.
      Specified by:
      callDestroy in interface GrailsBootstrapClass