Page Contents

Home > @loopback/boot > ServiceBooter

ServiceBooter class

A class that extends BaseArtifactBooter to boot the ‘Service’ artifact type. Discovered DataSources are bound using app.controller().

Supported phases: configure, discover, load

Signature:

export declare class ServiceBooter 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  
serviceProviders   ServiceProviderClass[]  

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.