@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
33 lines (22 loc) • 1.18 kB
Markdown
---
lang: en
title: 'API docs: core.lifecycleobserver'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/core
permalink: /doc/en/lb4/apidocs.core.lifecycleobserver.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/core](./core.md) > [LifeCycleObserver](./core.lifecycleobserver.md)
## LifeCycleObserver interface
Observers to handle life cycle init/start/stop events
<b>Signature:</b>
```typescript
export interface LifeCycleObserver
```
## Methods
| Method | Description |
| --- | --- |
| [init(injectedArgs)?](./core.lifecycleobserver.init.md) | <i>(Optional)</i> The method to be invoked during <code>init</code>. It will only be called at most once for a given application instance. |
| [start(injectedArgs)?](./core.lifecycleobserver.start.md) | <i>(Optional)</i> The method to be invoked during <code>start</code> |
| [stop(injectedArgs)?](./core.lifecycleobserver.stop.md) | <i>(Optional)</i> The method to be invoked during <code>stop</code> |