@methodus/framework-decorators
Version:
Server Decorators for methodus
21 lines • 813 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Proxy = void 0;
var framework_commons_1 = require("@methodus/framework-commons");
var Proxy = (function () {
function Proxy() {
}
Proxy.ProxyClass = function (packageName, className, localClassPath) {
return function (target) {
var methodus = framework_commons_1.default.util.maybeMethodus(target)[className];
if (!methodus) {
throw new Error("error finding configuration " + packageName + " " + className + "," + localClassPath);
}
framework_commons_1.default.logger.info("using the contract class for " + className);
return target;
};
};
return Proxy;
}());
exports.Proxy = Proxy;
//# sourceMappingURL=proxy.js.map