From 46e43f4bde4a35785b4997b81e86cd19f046b69b Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 21 Dec 2021 16:52:28 +0100 Subject: Commit --- src/node_modules/inversify/lib/bindings/binding.js | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/node_modules/inversify/lib/bindings/binding.js (limited to 'src/node_modules/inversify/lib/bindings/binding.js') diff --git a/src/node_modules/inversify/lib/bindings/binding.js b/src/node_modules/inversify/lib/bindings/binding.js new file mode 100644 index 0000000..cd87d83 --- /dev/null +++ b/src/node_modules/inversify/lib/bindings/binding.js @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var literal_types_1 = require("../constants/literal_types"); +var id_1 = require("../utils/id"); +var Binding = (function () { + function Binding(serviceIdentifier, scope) { + this.id = id_1.id(); + this.activated = false; + this.serviceIdentifier = serviceIdentifier; + this.scope = scope; + this.type = literal_types_1.BindingTypeEnum.Invalid; + this.constraint = function (request) { return true; }; + this.implementationType = null; + this.cache = null; + this.factory = null; + this.provider = null; + this.onActivation = null; + this.dynamicValue = null; + } + Binding.prototype.clone = function () { + var clone = new Binding(this.serviceIdentifier, this.scope); + clone.activated = false; + clone.implementationType = this.implementationType; + clone.dynamicValue = this.dynamicValue; + clone.scope = this.scope; + clone.type = this.type; + clone.factory = this.factory; + clone.provider = this.provider; + clone.constraint = this.constraint; + clone.onActivation = this.onActivation; + clone.cache = this.cache; + return clone; + }; + return Binding; +}()); +exports.Binding = Binding; -- cgit