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[];
getComponentsByComponentType(componentType: Mandarine.MandarineCore.ComponentTypes): Mandarine.MandarineCore.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;
}§Methods
§
connectMicroserviceToProxy(microserviceInstance: ComponentComponent): void
[src]§
get(componentName: string): ComponentRegistryContext | undefined
[src]§
getAllComponentNamesByType(componentType: ComponentTypes): Array<string> | undefined
[src]§
getComponentByHandlerType(classType: any, requiredType?: Mandarine.MandarineCore.ComponentTypes): ComponentRegistryContext | undefined
[src]§
getComponents(): ComponentRegistryContext[]
[src]§
getComponentsByComponentType(componentType: Mandarine.MandarineCore.ComponentTypes): Mandarine.MandarineCore.ComponentRegistryContext[]
[src]§
getControllers(): ComponentRegistryContext[]
[src]§
getRepositoryByHandlerType(classType: any): Mandarine.MandarineCore.ComponentRegistryContext | undefined
[src]§
register(
[src]componentName: string,
componentInstance: any,
componentType: ComponentTypes,
configuration: any,
): void