UNPKG

ajsfw

Version:
17 lines (16 loc) 543 B
"use strict"; 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;