Page Contents
Home > @loopback/boot > RepositoryBooter
RepositoryBooter class
A class that extends BaseArtifactBooter to boot the ‘Repository’ artifact type. Discovered repositories are bound using app.repository() which must be added to an Application using the RepositoryMixin from @loopback/repository.
Supported phases: configure, discover, load
Signature:
export declare class RepositoryBooter extends BaseArtifactBooter
Extends: BaseArtifactBooter
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(app, projectRoot, repositoryOptions) | Constructs a new instance of the RepositoryBooter class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| app | ApplicationWithRepositories | ||
| repositoryOptions | ArtifactOptions |
Methods
| Method | Modifiers | Description |
|---|---|---|
| load() | Uses super method to get a list of Artifact classes. Boot each class by binding it to the application using app.repository(repository); if present. |