Page Contents
Home > @loopback/core > LifeCycleObserver
LifeCycleObserver interface
Observers to handle life cycle init/start/stop events
Signature:
export interface LifeCycleObserver
Methods
| Method | Description |
|---|---|
| init(injectedArgs)? | (Optional) The method to be invoked during init. It will only be called at most once for a given application instance. |
| start(injectedArgs)? | (Optional) The method to be invoked during start |
| stop(injectedArgs)? | (Optional) The method to be invoked during stop |