Home > @loopback/core > LifeCycleObserverRegistry
LifeCycleObserverRegistry class
A context-based registry for life cycle observers
Signature:
export declare class LifeCycleObserverRegistry implements LifeCycleObserver
Implements: LifeCycleObserver
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
|
Constructs a new instance of the |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
|
| |||
|
| |||
|
|
Methods
| Method | Modifiers | Description |
|---|---|---|
|
|
Get the group for a given life cycle observer binding | |
|
Get observer groups ordered by the group | ||
|
Notify all life cycle observers by group of | ||
|
|
Invoke an observer for the given event | |
|
|
Emit events to the observer groups | |
|
|
Notify an observer group of the given event | |
|
|
Sort the life cycle observer bindings so that we can start/stop them in the right order. By default, we can start other observers before servers and stop them in the reverse order | |
|
Notify all life cycle observers by group of | ||
|
Notify all life cycle observers by group of |