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 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 getAllComponentNames(): Array<string>;
public getAllComponentNamesByType(componentType: Mandarine.MandarineCore.ComponentTypes): Array<string> | undefined;
public getComponentByHandlerType(classType: any, requiredType?: Mandarine.MandarineCore.ComponentTypes): Mandarine.MandarineCore.ComponentRegistryContext | undefined;
public getComponentsByComponentType(componentType: Mandarine.MandarineCore.ComponentTypes): Mandarine.MandarineCore.ComponentRegistryContext[];
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,
componentType: Mandarine.MandarineCore.ComponentTypes,
configuration: any,
): void;public resolveDependencies(): void;
public update(itemName: string, newValue: Mandarine.MandarineCore.ComponentRegistryContext | undefined): void;
§Properties
§
components: Map<string, Mandarine.MandarineCore.ComponentRegistryContext>
[src]§Methods
§
connectRepositoryToProxy(repositoryObject: Mandarine.MandarineCore.ComponentRegistryContext) private
[src]§
get(itemName: string): Mandarine.MandarineCore.ComponentRegistryContext | undefined
[src]§
getAllComponentNamesByType(componentType: Mandarine.MandarineCore.ComponentTypes): Array<string> | undefined
[src]§
getAllRepositories(): Array<Mandarine.MandarineCore.ComponentRegistryContext>
[src]§
getComponentByHandlerType(classType: any, requiredType?: Mandarine.MandarineCore.ComponentTypes): Mandarine.MandarineCore.ComponentRegistryContext | undefined
[src]§
getComponents(): Mandarine.MandarineCore.ComponentRegistryContext[]
[src]§
getComponentsByComponentType(componentType: Mandarine.MandarineCore.ComponentTypes): Mandarine.MandarineCore.ComponentRegistryContext[]
[src]§
getControllers(): Mandarine.MandarineCore.ComponentRegistryContext[]
[src]§
getRepositoryByHandlerType(classType: any): Mandarine.MandarineCore.ComponentRegistryContext | undefined
[src]§
register(componentName: string, componentInstance: any, componentType: Mandarine.MandarineCore.ComponentTypes, configuration: any): void
[src]§
update(itemName: string, newValue: Mandarine.MandarineCore.ComponentRegistryContext | undefined): void
[src]