Page Contents
Home > @loopback/core > LifeCycleObserverRegistry > sortObserverBindingsByGroup
LifeCycleObserverRegistry.sortObserverBindingsByGroup() method
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
Signature:
protected sortObserverBindingsByGroup(bindings: Readonly<Binding<LifeCycleObserver>>[]): LifeCycleObserverGroup[];
Parameters
Parameter | Type | Description |
---|---|---|
bindings | Readonly<Binding<LifeCycleObserver>>[] | Life cycle observer bindings |
Returns: