UNPKG

dino-core

Version:

A dependency injection framework for NodeJS applications

24 lines 904 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Factory = void 0; const not_supported_exception_1 = require("../../exceptions/not.supported.exception"); const component_1 = require("../../model/component"); /** * Helps create complex objects and aggregates */ class Factory extends component_1.Component { constructor({ applicationContext }) { super(); this.applicationContext = applicationContext; } /** * Create an new instance based on the input information and internal logic * @param i the input for the factory * @deprecated use Factory#create instead, **this method was introduced by error and will be removed soon** */ translate(_i) { throw not_supported_exception_1.NotSupportedException.create('use Factory#create instead'); } } exports.Factory = Factory; //# sourceMappingURL=Factory.js.map