Page Contents
Home > @loopback/boot > Bootstrapper
Bootstrapper class
The Bootstrapper class provides the boot
function that is responsible for finding and executing the Booters in an application based on given options.
NOTE: Bootstrapper should be bound as a SINGLETON so it can be cached as it does not maintain any state of it’s own.
Signature:
export declare class Bootstrapper
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(app, projectRoot, bootOptions) | Constructs a new instance of the Bootstrapper class |
Methods
Method | Modifiers | Description |
---|---|---|
boot(execOptions, ctx) | Function is responsible for calling all registered Booter classes that are bound to the Application instance. Each phase of an instance must complete before the next phase is started. |