| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1× 1× 1× 1× 1421× 1× 1421× 1× 51× 1× 1× | define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ServiceLocator = (function () {
function ServiceLocator() {
this.services = {};
}
ServiceLocator.prototype.register = function (name, type) {
this.services["" + name] = type;
};
ServiceLocator.prototype.getService = function (name) {
return this.services["" + name];
};
return ServiceLocator;
}());
exports.ServiceLocator = ServiceLocator;
});
|