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
Fields Modifier and Type Field Description static java.lang.StringBOOT_STRAP
-
Constructor Summary
Constructors Constructor Description DefaultGrailsBootstrapClass(java.lang.Class<?> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcallDestroy()Calls the destroy closure if one exists.voidcallInit(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.ObjectgetReferenceInstance()-
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
-
-
-
-
Field Detail
-
BOOT_STRAP
public static final java.lang.String BOOT_STRAP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getReferenceInstance
public java.lang.Object 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(javax.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
-
-