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

ComponentsRegistry

import { ComponentsRegistry } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.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

class ComponentsRegistry implements [[Mandarine.MandarineCore].IComponentsRegistry] {
constructor();
private components: Map<string, Mandarine.MandarineCore.ComponentRegistryContext>;
private logger: Log;
 
private connectRepositoryToProxy(repositoryObject: Mandarine.MandarineCore.ComponentRegistryContext);
public clearComponentRegistry(): void;
public connectMicroserviceToProxy(microserviceInstance: ComponentComponent): void;
public connectRepositoriesToProxy(): void;
public connectWebsocketClientProxy(websocketInstance: ComponentComponent): void;
public connectWebsocketServerProxy(websocketInstance: ComponentComponent): void;
public exist(itemName: string): boolean;
public get(itemName: string): Mandarine.MandarineCore.ComponentRegistryContext | undefined;
public getAllComponentNames(): Array<string>;
public getAllComponentNamesByType(componentType: Mandarine.MandarineCore.ComponentTypes): Array<string> | undefined;
public getAllRepositories(): Array<Mandarine.MandarineCore.ComponentRegistryContext>;
public getComponentByHandlerType(classType: any, requiredType?: Mandarine.MandarineCore.ComponentTypes): Mandarine.MandarineCore.ComponentRegistryContext | undefined;
public getRepositoryByHandlerType(classType: any): Mandarine.MandarineCore.ComponentRegistryContext | undefined;
public initializeControllers(): void;
public initializeEventListeners(): void;
public initializeMicroservices(): void;
public initializeTasks(): void;
public initializeValueReaders(): void;
public initializeValueReaderWithCustomConfiguration(): void;
public initializeWebsocketComponents(): void;
public register(
componentName: string,
componentInstance: any,
configuration: any,
): void;
public resolveDependencies(): void;
public update(itemName: string, newValue: Mandarine.MandarineCore.ComponentRegistryContext | undefined): void;
}

§Implements

§
[[Mandarine.MandarineCore].IComponentsRegistry]
[src]

§Constructors

§
new ComponentsRegistry()
[src]

§Properties

§
logger: Log
[src]

§Methods

§
connectRepositoryToProxy(repositoryObject: Mandarine.MandarineCore.ComponentRegistryContext) private
[src]
§
clearComponentRegistry(): void
[src]
§
connectMicroserviceToProxy(microserviceInstance: ComponentComponent): void
[src]
§
connectRepositoriesToProxy(): void
[src]
§
connectWebsocketClientProxy(websocketInstance: ComponentComponent): void
[src]
§
connectWebsocketServerProxy(websocketInstance: ComponentComponent): void
[src]
§
exist(itemName: string): boolean
[src]
§
getAllComponentNames(): Array<string>
[src]
§
getAllComponentNamesByType(componentType: Mandarine.MandarineCore.ComponentTypes): Array<string> | undefined
[src]
§
getComponentByHandlerType(classType: any, requiredType?: Mandarine.MandarineCore.ComponentTypes): Mandarine.MandarineCore.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: Mandarine.MandarineCore.ComponentTypes, configuration: any): void
[src]
§
resolveDependencies(): void
[src]
§
update(itemName: string, newValue: Mandarine.MandarineCore.ComponentRegistryContext | undefined): void
[src]