import { ModuleRef } from "https://deno.land/x/momentum@v0.8.2/mvc-handlebars/deps.ts";
Represents a reference to an bootstrapped Momentum module
Constructors
new
ModuleRef(metadata: ExtendedModuleMetadata,
diContainer: DiContainer,
diCache: DiCache,
instance: unknown,
modules: ModuleRef[],
Properties
readonly
controllers: Type<unknown>[]Get the controllers associated with the module
Methods
resolve<TReturn = unknown>(identifier: TypeIdentifier): Promise<TReturn>
Resolves an instance of @see TReturn
resolve<TReturn = unknown>(identifier: TypeIdentifier, cache: DiCache): Promise<TReturn>
Resolves an instance of @see TReturn using a custom @see DiCache
Static Methods
private
populateDiContainer()private
resolveModule(moduleDefinition: ModuleClass | DynamicModule,
diContainer: DiContainer,
diCache: DiCache,
moduleCache?: Map<ExtendedModuleMetadata, ModuleRef>,
createModuleRef(): Promise<ModuleRef>
moduleMetadata: ExtendedModuleMetadata,
diContainer: DiContainer,
diCache: DiCache,
moduleCache?: Map<ExtendedModuleMetadata, ModuleRef>,