Package org.grails.web.servlet.boostrap
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
FieldsFields inherited from class org.grails.core.AbstractGrailsClass
grailsApplication -
Constructor Summary
Constructors -
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.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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, getShortName, hasProperty, isAbstract, newInstance
-
Field Details
-
BOOT_STRAP
- See Also:
-
-
Constructor Details
-
DefaultGrailsBootstrapClass
-
-
Method Details
-
getReferenceInstance
- Specified by:
getReferenceInstancein interfacegrails.core.GrailsClass- Overrides:
getReferenceInstancein classorg.grails.core.AbstractGrailsClass
-
getInitClosure
public groovy.lang.Closure<?> getInitClosure()Description copied from interface:GrailsBootstrapClassReturns the init closure which is called on application load.- Specified by:
getInitClosurein interfaceGrailsBootstrapClass- Returns:
- A Closure instance
-
getDestroyClosure
public groovy.lang.Closure<?> getDestroyClosure()Description copied from interface:GrailsBootstrapClassReturns the destroy closure which is called on application exit.- Specified by:
getDestroyClosurein interfaceGrailsBootstrapClass- Returns:
- A Closure instance
-
callInit
public void callInit(jakarta.servlet.ServletContext servletContext) Description copied from interface:GrailsBootstrapClassCalls the init closure if one exists.- Specified by:
callInitin interfaceGrailsBootstrapClass
-
callDestroy
public void callDestroy()Description copied from interface:GrailsBootstrapClassCalls the destroy closure if one exists.- Specified by:
callDestroyin interfaceGrailsBootstrapClass
-