Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mandarinets/main-core/components-registry/componentRegistry.ts>ComponentsRegistry

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
class ComponentsRegistry
implements [[Mandarine.MandarineCore].IComponentsRegistry]
import { ComponentsRegistry } from "https://deno.land/x/mandarinets@v2.3.2/main-core/components-registry/componentRegistry.ts";

This class is also known as the DI container. This class handles the addition, initialization and injection for all mandarine components This class is also responsible for connection repository methods to a repository proxy method in order to resolve queries

Constructors

new
ComponentsRegistry()

Properties

private
components: Map<string, Mandarine.MandarineCore.ComponentRegistryContext>
private
logger: Log

Methods

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