From 23ddc52a6b4d16aaafe0256b5339870403d25c03 Mon Sep 17 00:00:00 2001 From: Arie Trouw Date: Fri, 2 Aug 2024 13:21:19 -0700 Subject: [PATCH] ModuleFactoryLocator create functions --- .../module/packages/locator/src/ModuleFactoryLocator.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/modules/packages/module/packages/locator/src/ModuleFactoryLocator.ts b/packages/modules/packages/module/packages/locator/src/ModuleFactoryLocator.ts index 17d64294be..b071782407 100644 --- a/packages/modules/packages/module/packages/locator/src/ModuleFactoryLocator.ts +++ b/packages/modules/packages/module/packages/locator/src/ModuleFactoryLocator.ts @@ -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 }