nope/modules/mod-Memory-Interface/assembly/manual-assembly.ts

35 lines
830 B
TypeScript
Raw Normal View History

2020-09-10 16:21:19 +00:00
/**
* @author Martin Karkowski
* @email m.karkowski@zema.de
* @create date 2018-10-23 18:20:09
* @modify date 2020-02-28 16:09:34
* @desc [description]
*/
import { IStorageInterface } from '../type/interfaces';
import { IDescriptor } from '../../ZISS-Assembly-Builder/type/interfaces';
/** Import Class */
import { BaseStorage } from '../src/Storage';
export const TYPES = {
Storage: Symbol.for('Storage'),
StorageFactory: Symbol.for('StorageFactory'),
};
export type IBaseStorage = IStorageInterface;
export const EXPORT: Array<IDescriptor> = [
{
selector: TYPES.Storage,
factorySelector: TYPES.StorageFactory,
type: BaseStorage,
options: {
scope: 'inSingletonScope'
}
}
];
export const REQUIRE = ['LOGGING', 'PUBSUB']
export const NAME = 'STORAGE';