nope/modules/mod-Generic-PLC-Interface/assembly/manual-assembly.ts
2020-08-30 09:45:44 +02:00

50 lines
1.2 KiB
TypeScript

/**
* @author Martin Karkowski
* @email m.karkowski@zema.de
* @create date 2018-07-03 07:37:59
* @modify date 2020-03-20 13:00:35
* @desc [description]
*/
import { IDescriptor } from '../../mod-Assembly-Builder/type/interfaces';
import { GenericPLC } from '../src/GenericPLC';
import { RawPLCModuleBase } from '../src/RawPLCModuleBase';
import { RawPLCModuleFactory } from '../src/RawPLCModuleFactory';
import * as PLC_TYPES from '../type/types';
export const TYPES = PLC_TYPES.TYPES
export const EXPORT: Array<IDescriptor> = [
{
selector: TYPES.RawPLCModule,
factorySelector: TYPES.RawPLCModuleFactory,
type: RawPLCModuleBase,
},
{
selector: TYPES.ModuleFactory,
type: RawPLCModuleFactory,
options: {
scope: 'inSingletonScope'
}
},
{
selector: TYPES.GenericPLC,
factorySelector: TYPES.GenericPLCFactory,
type: GenericPLC,
options: {
scope: 'inSingletonScope'
}
},
];
export const REQUIRE = ['PUBSUB'];
export const NAME = 'PLC';
/** Export the Type */
export type PLC = GenericPLC;
export type SmartBuffer = RawPLCModuleBase;