Class 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 java.lang.String BOOT_STRAP  
      • Fields inherited from class org.grails.core.AbstractGrailsClass

        grailsApplication
    • Method Summary

      All Methods Instance Methods Concrete 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.
      java.lang.Object getReferenceInstance()  
      • 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
    • Constructor Detail

      • DefaultGrailsBootstrapClass

        public DefaultGrailsBootstrapClass​(java.lang.Class<?> clazz)
    • Method Detail

      • getReferenceInstance

        public java.lang.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