Page Contents

Home > @loopback/core > LifeCycleObserverRegistry > (constructor)

LifeCycleObserverRegistry.(constructor)

Constructs a new instance of the LifeCycleObserverRegistry class

Signature:

constructor(context: Context, observersView: ContextView<LifeCycleObserver>, options?: LifeCycleObserverOptions);

Parameters

Parameter Type Description
context [Context](/doc/en/lb4/apidocs.context.context.html)
observersView [ContextView](/doc/en/lb4/apidocs.context.contextview.html)<[LifeCycleObserver](/doc/en/lb4/apidocs.core.lifecycleobserver.html)>
options [LifeCycleObserverOptions](/doc/en/lb4/apidocs.core.lifecycleobserveroptions.html) _(Optional)_