UNPKG

tsioc

Version:

tsioc is AOP, Ioc container, via typescript decorator

42 lines (40 loc) 1.76 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var AopActions_1 = require("./AopActions"); var RegistAspectAction_1 = require("./RegistAspectAction"); var index_1 = require("../actions/index"); var AopActionFactory = /** @class */ (function () { function AopActionFactory() { } AopActionFactory.prototype.create = function (type) { var action; switch (type) { case AopActions_1.AopActions.registAspect: action = new RegistAspectAction_1.RegistAspectAction(); break; case AopActions_1.AopActions.matchPointcut: action = new index_1.MatchPointcutAction(); break; case AopActions_1.AopActions.invokeBeforeConstructorAdvices: action = new index_1.InvokeBeforeConstructorAction(); break; case AopActions_1.AopActions.invokeAfterConstructorAdvices: action = new index_1.InvokeAfterConstructorAction(); break; case AopActions_1.AopActions.bindMethodPointcut: action = new index_1.BindMethodPointcutAction(); break; // case AopActions.bindPropertyPointcut: // action = new BindPropertyPointcutAction(); // break; case AopActions_1.AopActions.exetndsInstance: action = new index_1.ExetndsInstanceAction(); break; } return action; }; AopActionFactory.classAnnations = { "name": "AopActionFactory", "params": { "create": ["type"] } }; return AopActionFactory; }()); exports.AopActionFactory = AopActionFactory; //# sourceMappingURL=../sourcemaps/actions/AopActionFactory.js.map