@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
33 lines (22 loc) • 1.23 kB
Markdown
---
lang: en
title: 'API docs: core.lifecycleobserverregistry._constructor_'
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.lifecycleobserverregistry._constructor_.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/core](./core.md) > [LifeCycleObserverRegistry](./core.lifecycleobserverregistry.md) > [(constructor)](./core.lifecycleobserverregistry._constructor_.md)
## LifeCycleObserverRegistry.(constructor)
Constructs a new instance of the `LifeCycleObserverRegistry` class
<b>Signature:</b>
```typescript
constructor(context: Context, observersView: ContextView<LifeCycleObserver>, options?: LifeCycleObserverOptions);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| context | [Context](./context.context.md) | |
| observersView | [ContextView](./context.contextview.md)<!-- --><[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->> | |
| options | [LifeCycleObserverOptions](./core.lifecycleobserveroptions.md) | |