@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
89 lines (44 loc) • 1.59 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
**Signature:**
```typescript
constructor(context: Context, observersView: ContextView<LifeCycleObserver>, options?: LifeCycleObserverOptions);
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
context
</td><td markdown="1">
[Context](./context.context.md)
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
observersView
</td><td markdown="1">
[ContextView](./context.contextview.md)<!-- --><[LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->>
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
options
</td><td markdown="1">
[LifeCycleObserverOptions](./core.lifecycleobserveroptions.md)
</td><td markdown="1">
_(Optional)_
</td></tr>
</tbody></table>