diff options
author | Minteck <contact@minteck.org> | 2021-12-21 16:52:28 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2021-12-21 16:52:28 +0100 |
commit | 46e43f4bde4a35785b4997b81e86cd19f046b69b (patch) | |
tree | c53c2f826f777f9d6b2d249dab556feb72a6c3a6 /src/node_modules/inversify/es/bindings | |
download | langdetect-46e43f4bde4a35785b4997b81e86cd19f046b69b.tar.gz langdetect-46e43f4bde4a35785b4997b81e86cd19f046b69b.tar.bz2 langdetect-46e43f4bde4a35785b4997b81e86cd19f046b69b.zip |
Commit
Diffstat (limited to 'src/node_modules/inversify/es/bindings')
-rw-r--r-- | src/node_modules/inversify/es/bindings/binding.js | 34 | ||||
-rw-r--r-- | src/node_modules/inversify/es/bindings/binding_count.js | 6 |
2 files changed, 40 insertions, 0 deletions
diff --git a/src/node_modules/inversify/es/bindings/binding.js b/src/node_modules/inversify/es/bindings/binding.js new file mode 100644 index 0000000..c040275 --- /dev/null +++ b/src/node_modules/inversify/es/bindings/binding.js @@ -0,0 +1,34 @@ +import { BindingTypeEnum } from "../constants/literal_types"; +import { id } from "../utils/id"; +var Binding = (function () { + function Binding(serviceIdentifier, scope) { + this.id = id(); + this.activated = false; + this.serviceIdentifier = serviceIdentifier; + this.scope = scope; + this.type = 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; +}()); +export { Binding }; diff --git a/src/node_modules/inversify/es/bindings/binding_count.js b/src/node_modules/inversify/es/bindings/binding_count.js new file mode 100644 index 0000000..cd1b080 --- /dev/null +++ b/src/node_modules/inversify/es/bindings/binding_count.js @@ -0,0 +1,6 @@ +var BindingCount = { + MultipleBindingsAvailable: 2, + NoBindingsAvailable: 0, + OnlyOneBindingAvailable: 1 +}; +export { BindingCount }; |