pip-services3-components-nodex
Version:
Component definitions for Pip.Services in Node.js / ES2017
23 lines (20 loc) • 592 B
text/typescript
/** @module test */
import { Descriptor } from 'pip-services3-commons-nodex';
import { Factory } from '../build/Factory';
import { Shutdown } from './Shutdown';
/**
* Creates test components by their descriptors.
*
* @see [[Factory]]
* @see [[Shutdown]]
*/
export class DefaultTestFactory extends Factory {
private static readonly ShutdownDescriptor = new Descriptor("pip-services", "shutdown", "*", "*", "1.0");
/**
* Create a new instance of the factory.
*/
public constructor() {
super();
this.registerAsType(DefaultTestFactory.ShutdownDescriptor, Shutdown);
}
}