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