import { type Mandarine } from "https://deno.land/x/mandarinets@v2.3.2/mod.ts";
const { IComponentsRegistry } = Mandarine.MandarineCore;
Refers to the Components' Registry The components' registry is used to communicate the mandarine engine & DI layer This is possibly the most important class for mandarine to work. All components are registered inside this class
Methods
get(componentName: string): ComponentRegistryContext | undefined
update(itemName: string, newValue: ComponentRegistryContext | undefined): void
getAllComponentNamesByType(componentType: ComponentTypes): Array<string> | undefined
getComponents(): ComponentRegistryContext[]
getControllers(): ComponentRegistryContext[]
getComponentsByComponentType(componentType: Mandarine.MandarineCore.ComponentTypes): Mandarine.MandarineCore.ComponentRegistryContext[]
getComponentByHandlerType(classType: any): ComponentRegistryContext | undefined
getRepositoryByHandlerType(classType: any): Mandarine.MandarineCore.ComponentRegistryContext | undefined