Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Mandarine.MandarineCore.IComponentsRegistry

import type { Mandarine } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/main-core/Mandarine.ns.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

interface IComponentsRegistry {
clearComponentRegistry(): void;
connectMicroserviceToProxy(microserviceInstance: ComponentComponent): void;
connectRepositoriesToProxy(): void;
connectWebsocketClientProxy(component: any): void;
connectWebsocketServerProxy(component: any): void;
exist(itemName: string): boolean;
get(componentName: string): ComponentRegistryContext | undefined;
getAllComponentNames(): Array<string>;
getAllComponentNamesByType(componentType: ComponentTypes): Array<string> | undefined;
getComponentByHandlerType(classType: any, requiredType?: Mandarine.MandarineCore.ComponentTypes): ComponentRegistryContext | undefined;
getComponents(): ComponentRegistryContext[];
getControllers(): ComponentRegistryContext[];
getRepositoryByHandlerType(classType: any): Mandarine.MandarineCore.ComponentRegistryContext | undefined;
initializeControllers(): void;
initializeEventListeners(): void;
initializeMicroservices(): void;
initializeTasks(): void;
initializeValueReaders(): void;
initializeValueReaderWithCustomConfiguration(): void;
initializeWebsocketComponents(): void;
register(
componentName: string,
componentInstance: any,
componentType: ComponentTypes,
configuration: any,
): void;
resolveDependencies(): void;
update(itemName: string, newValue: ComponentRegistryContext | undefined): void;
}

§Methods

§
clearComponentRegistry(): void
[src]
§
connectMicroserviceToProxy(microserviceInstance: ComponentComponent): void
[src]
§
connectRepositoriesToProxy(): void
[src]
§
connectWebsocketClientProxy(component: any): void
[src]
§
connectWebsocketServerProxy(component: any): void
[src]
§
exist(itemName: string): boolean
[src]
§
get(componentName: string): ComponentRegistryContext | undefined
[src]
§
getAllComponentNames(): Array<string>
[src]
§
getAllComponentNamesByType(componentType: ComponentTypes): Array<string> | undefined
[src]
§
getComponentByHandlerType(classType: any, requiredType?: Mandarine.MandarineCore.ComponentTypes): ComponentRegistryContext | undefined
[src]
§
getRepositoryByHandlerType(classType: any): Mandarine.MandarineCore.ComponentRegistryContext | undefined
[src]
§
initializeControllers(): void
[src]
§
initializeEventListeners(): void
[src]
§
initializeMicroservices(): void
[src]
§
initializeTasks(): void
[src]
§
initializeValueReaders(): void
[src]
§
initializeValueReaderWithCustomConfiguration(): void
[src]
§
initializeWebsocketComponents(): void
[src]
§
register(
componentName: string,
componentInstance: any,
componentType: ComponentTypes,
configuration: any,
): void
[src]
§
resolveDependencies(): void
[src]
§
update(itemName: string, newValue: ComponentRegistryContext | undefined): void
[src]