interface GrailsApplicationLifeCycle
API which plugins implement to provide behavior in defined application lifecycle hooks. The GrailsApplicationLifeCycle.doWithSpring method can be used register Spring beans.
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract void |
doWithApplicationContext()Invoked once the ApplicationContext has been refreshed and after {#doWithDynamicMethods()} is invoked. |
|
abstract void |
doWithDynamicMethods()Invoked once the ApplicationContext has been refreshed in a phase where plugins can add dynamic methods. |
|
abstract Closure |
doWithSpring()Sub classes should override to provide implementations |
|
abstract void |
onConfigChange(Map<String, Object> event)Invoked when the application configuration changes |
|
abstract void |
onShutdown(Map<String, Object> event)Invoked when the ApplicationContext is closed |
|
abstract void |
onStartup(Map<String, Object> event)Invoked once all prior initialization hooks: GrailsApplicationLifeCycle.doWithSpring, GrailsApplicationLifeCycle.doWithDynamicMethods and GrailsApplicationLifeCycle.doWithApplicationContext |
Invoked once the ApplicationContext has been refreshed and after {#doWithDynamicMethods()} is invoked. Subclasses should override
Invoked once the ApplicationContext has been refreshed in a phase where plugins can add dynamic methods. Subclasses should override
Sub classes should override to provide implementations
Invoked when the application configuration changes
event - The eventInvoked when the ApplicationContext is closed
event - The eventInvoked once all prior initialization hooks: GrailsApplicationLifeCycle.doWithSpring, GrailsApplicationLifeCycle.doWithDynamicMethods and GrailsApplicationLifeCycle.doWithApplicationContext
event - The event