type-autofac
Version:
tsioc is AOP, Ioc container, via typescript decorator
41 lines (39 loc) • 1.67 kB
JavaScript
;
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;
};
return AopActionFactory;
}());
exports.AopActionFactory = AopActionFactory;
//# sourceMappingURL=../../sourcemaps/aop/actions/AopActionFactory.js.map