Page Contents
Home > @loopback/boot > ServiceBooter
ServiceBooter class
A class that extends BaseArtifactBooter to boot the ‘Service’ artifact type. Discovered services are bound using app.service().
Supported phases: configure, discover, load
Signature:
export declare class ServiceBooter extends BaseArtifactBooter
Extends: BaseArtifactBooter
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(app, projectRoot, serviceConfig) | Constructs a new instance of the ServiceBooter class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| app | ApplicationWithServices | ||
| serviceConfig | 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. |