Page Contents
Home > @loopback/boot > ModelBooter
ModelBooter class
A class that extends BaseArtifactBooter to boot the ‘Model’ artifact type.
Supported phases: configure, discover, load
Signature:
export declare class ModelBooter extends BaseArtifactBooter
Extends: BaseArtifactBooter
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(app, projectRoot, modelConfig) | Constructs a new instance of the ModelBooter class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
app | ApplicationWithRepositories | ||
modelConfig | ArtifactOptions |
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. |