UNPKG

dotnode

Version:

.NET-like MVC framework for Node.js

24 lines (14 loc) 528 B
var BindingConfig = require('../ioc/bindingConfig'); var BindingDictionary = function () { this._bindings = {}; }; // #region public methods BindingDictionary.prototype.getBindings = function () { return this._bindings; }; BindingDictionary.prototype.bind = function (constructorPath, bindingValues) { this._bindings[constructorPath] = new BindingConfig(constructorPath, bindingValues); return this._bindings[constructorPath]; }; // #endregion module.exports = BindingDictionary;