summaryrefslogtreecommitdiff
path: root/src/node_modules/inversify/amd/bindings
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_modules/inversify/amd/bindings')
-rw-r--r--src/node_modules/inversify/amd/bindings/binding.js36
-rw-r--r--src/node_modules/inversify/amd/bindings/binding_count.js10
2 files changed, 46 insertions, 0 deletions
diff --git a/src/node_modules/inversify/amd/bindings/binding.js b/src/node_modules/inversify/amd/bindings/binding.js
new file mode 100644
index 0000000..f08f9c7
--- /dev/null
+++ b/src/node_modules/inversify/amd/bindings/binding.js
@@ -0,0 +1,36 @@
+define(["require", "exports", "../constants/literal_types", "../utils/id"], function (require, exports, literal_types_1, id_1) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ 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;
+});
diff --git a/src/node_modules/inversify/amd/bindings/binding_count.js b/src/node_modules/inversify/amd/bindings/binding_count.js
new file mode 100644
index 0000000..3505947
--- /dev/null
+++ b/src/node_modules/inversify/amd/bindings/binding_count.js
@@ -0,0 +1,10 @@
+define(["require", "exports"], function (require, exports) {
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var BindingCount = {
+ MultipleBindingsAvailable: 2,
+ NoBindingsAvailable: 0,
+ OnlyOneBindingAvailable: 1
+ };
+ exports.BindingCount = BindingCount;
+});