ajsfw
Version:
Ajs Framework
17 lines (16 loc) • 543 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var ajs = require("ajsfw");
var exceptions = require("./exceptions");
function applicationDecorator() {
"use strict";
return function (target) {
if (ajs.bootConfig.applicationConstructor === undefined) {
ajs.bootConfig.applicationConstructor = target;
}
else {
throw new exceptions.OnlyOneApplicationIsAllowedException();
}
};
}
exports.applicationDecorator = applicationDecorator;