Page Contents
Home > @loopback/boot > LifeCycleObserverBooter
LifeCycleObserverBooter class
A class that extends BaseArtifactBooter to boot the ‘LifeCycleObserver’ artifact type.
Supported phases: configure, discover, load
Signature:
export declare class LifeCycleObserverBooter extends BaseArtifactBooter
Extends: BaseArtifactBooter
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(app, projectRoot, observerConfig) | Constructs a new instance of the LifeCycleObserverBooter class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
app | Application | ||
observerConfig | ArtifactOptions | ||
observers | LifeCycleObserverClass[] |
Methods
Method | Modifiers | Description |
---|---|---|
load() | Uses super method to get a list of Artifact classes. Boot each file by creating a DataSourceConstructor and binding it to the application class. |