UNPKG

tsioc

Version:

tsioc is AOP, Ioc container, via typescript decorator

37 lines (35 loc) 1.63 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var index_1 = require("../../core/index"); var AopActions_1 = require("./AopActions"); var ExetndsInstanceAction = /** @class */ (function (_super) { __extends(ExetndsInstanceAction, _super); function ExetndsInstanceAction() { return _super.call(this, AopActions_1.AopActions.registAspect) || this; } ExetndsInstanceAction.prototype.working = function (container, data) { // aspect class do nothing. if (!data.target || !data.providers || data.providers.length < 1) { return; } data.providers.forEach(function (p) { if (p && p instanceof index_1.ExtendsProvider) { p.extends(data.target); } }); }; ExetndsInstanceAction.classAnnations = { "name": "ExetndsInstanceAction", "params": { "constructor": [], "working": ["container", "data"] } }; return ExetndsInstanceAction; }(index_1.ActionComposite)); exports.ExetndsInstanceAction = ExetndsInstanceAction; //# sourceMappingURL=../sourcemaps/actions/ExetndsInstanceAction.js.map