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)?](/doc/en/lb4/apidocs.core.lifecycleobserver.init.html) _(Optional)_ The method to be invoked during `init`. It will only be called at most once for a given application instance.
[start(injectedArgs)?](/doc/en/lb4/apidocs.core.lifecycleobserver.start.html) _(Optional)_ The method to be invoked during `start`
[stop(injectedArgs)?](/doc/en/lb4/apidocs.core.lifecycleobserver.stop.html) _(Optional)_ The method to be invoked during `stop`