Skip to content

Commit

Permalink
ModuleFactoryLocator create functions
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Aug 2, 2024
1 parent 3f09346 commit 23ddc52
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ export class ModuleFactoryLocator {
return this._registry
}

static empty() {
return new ModuleFactoryLocator({})
}

static standard() {
return new ModuleFactoryLocator(standardCreatableFactories())
}

freeze() {
this._frozen = true
}
Expand Down

0 comments on commit 23ddc52

Please sign in to comment.