Skip to main content
Module

x/mandarinets/mod.ts>Mandarine.MandarineCore.IComponentsRegistry

Mandarine.TS is a typescript, decorator-driven framework that allows you to create server-side applications. Mandarine.TS provides a range of built-in solutions such as Dependency Injection, Components, ORM and more. Under its umbrella, Mandarine.TS has 4 modules: Core, Data, Security and MVC, these modules will offer you the requirements to build a Mandarine-powered application.
Latest
interface Mandarine.MandarineCore.IComponentsRegistry
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

register(
componentName: string,
componentInstance: any,
componentType: ComponentTypes,
configuration: any,
): void
get(componentName: string): ComponentRegistryContext | undefined
clearComponentRegistry(): void
update(itemName: string, newValue: ComponentRegistryContext | undefined): void
exist(itemName: string): boolean
getAllComponentNames(): Array<string>
getAllComponentNamesByType(componentType: ComponentTypes): Array<string> | undefined
getComponents(): ComponentRegistryContext[]
getControllers(): ComponentRegistryContext[]
getComponentByHandlerType(classType: any): ComponentRegistryContext | undefined
resolveDependencies(): void
getRepositoryByHandlerType(classType: any): Mandarine.MandarineCore.ComponentRegistryContext | undefined
connectRepositoriesToProxy(): void
initializeControllers(): void