projects/wms-framework/src/lib/regionsframework/ExternalFragmentRegistry.ts
Copyright (C) Mobilize.Net info@mobilize.net - All Rights Reserved
This file is part of the Mobilize Frameworks, which is proprietary and confidential.
NOTICE: All information contained herein is, and remains the property of Mobilize.Net Corporation. The intellectual and technical concepts contained herein are proprietary to Mobilize.Net Corporation and may be covered by U.S. Patents, and are protected by trade secret or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained from Mobilize.Net Corporation.
Properties |
|
Methods |
|
Static registrations |
Type : literal type
|
Default value : {}
|
Static clear |
clear()
|
Returns :
void
|
Static registerFragment |
registerFragment(moduleName: string, moduleImportFunction: () => void)
|
Returns :
void
|
export class ExternalFragmentRegistry {
public static registrations: { [key: string]: () => Promise<unknown> } = {};
public static clear(): void {
ExternalFragmentRegistry.registrations = {};
}
public static registerFragment(
moduleName: string,
moduleImportFunction: () => Promise<unknown>
): void {
ExternalFragmentRegistry.registrations[moduleName] = moduleImportFunction;
}
}