UNPKG

pip-services3-components-nodex

Version:
31 lines 1.51 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DefaultStateStoreFactory = void 0; /** @module state-store */ const pip_services3_commons_nodex_1 = require("pip-services3-commons-nodex"); const Factory_1 = require("../build/Factory"); const NullStateStore_1 = require("./NullStateStore"); const MemoryStateStore_1 = require("./MemoryStateStore"); /** * Creates [[IStateStore]] components by their descriptors. * * @see [[Factory]] * @see [[IStateStore]] * @see [[MemoryStateStore]] * @see [[NullStateStore]] */ class DefaultStateStoreFactory extends Factory_1.Factory { /** * Create a new instance of the factory. */ constructor() { super(); this.registerAsType(DefaultStateStoreFactory.MemoryStateStoreDescriptor, MemoryStateStore_1.MemoryStateStore); this.registerAsType(DefaultStateStoreFactory.NullStateStoreDescriptor, NullStateStore_1.NullStateStore); } } DefaultStateStoreFactory.Descriptor = new pip_services3_commons_nodex_1.Descriptor("pip-services", "factory", "state-store", "default", "1.0"); DefaultStateStoreFactory.NullStateStoreDescriptor = new pip_services3_commons_nodex_1.Descriptor("pip-services", "state-store", "null", "*", "1.0"); DefaultStateStoreFactory.MemoryStateStoreDescriptor = new pip_services3_commons_nodex_1.Descriptor("pip-services", "state-store", "memory", "*", "1.0"); exports.DefaultStateStoreFactory = DefaultStateStoreFactory; //# sourceMappingURL=DefaultStateStoreFactory.js.map