public class DefaultGrailsBootstrapClass extends AbstractGrailsClass implements GrailsBootstrapClass
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BOOT_STRAP |
Constructor and Description |
---|
DefaultGrailsBootstrapClass(java.lang.Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
void |
callDestroy()
Calls the destroy closure if one exists.
|
void |
callInit(ServletContext servletContext)
Calls the init closure if one exists.
|
<any> |
getDestroyClosure()
Returns the destroy closure which is called on application exit.
|
<any> |
getInitClosure()
Returns the init closure which is called on application load.
|
getClazz, getFullName, getGrailsApplication, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPropertyDescriptors, getPropertyName, getPropertyType, getPropertyValue, getPropertyValue, getPropertyValueObject, getReference, getReferenceInstance, getShortName, getStaticPropertyValue, hasMetaMethod, hasMetaMethod, hasMetaProperty, hasProperty, isAbstract, isActionMethod, isReadableProperty, newInstance, setGrailsApplication, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getClazz, getFullName, getGrailsApplication, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPropertyName, getPropertyValue, getPropertyValue, getReference, getReferenceInstance, getShortName, hasProperty, isAbstract, newInstance
setGrailsApplication
public static final java.lang.String BOOT_STRAP
public DefaultGrailsBootstrapClass(java.lang.Class<?> clazz)
public <any> getInitClosure()
GrailsBootstrapClass
getInitClosure
in interface GrailsBootstrapClass
public <any> getDestroyClosure()
GrailsBootstrapClass
getDestroyClosure
in interface GrailsBootstrapClass
public void callInit(ServletContext servletContext)
GrailsBootstrapClass
callInit
in interface GrailsBootstrapClass
public void callDestroy()
GrailsBootstrapClass
callDestroy
in interface GrailsBootstrapClass