public 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 |
|---|---|---|
|
public void |
doWithApplicationContext()Invoked once the ApplicationContext has been refreshed and after {#doWithDynamicMethods()} is invoked. |
|
public void |
doWithDynamicMethods()Invoked once the ApplicationContext has been refreshed in a phase where plugins can add dynamic methods. |
|
public Closure<?> |
doWithSpring()Subclasses should override to provide implementations |
|
public void |
onConfigChange(Map<String, Object> event)Invoked when the application configuration changes |
|
public void |
onShutdown(Map<String, Object> event)Invoked when the ApplicationContext is closed |
|
public 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
Subclasses 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