node-web-mvc
Version:
node spring mvc
22 lines (21 loc) • 989 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const ApplicationContextAware_1 = __importDefault(require("../../servlets/context/ApplicationContextAware"));
const InstantiationAwareBeanPostProcessor_1 = __importDefault(require("./InstantiationAwareBeanPostProcessor"));
class ApplicationContextAwareProcessor extends InstantiationAwareBeanPostProcessor_1.default {
constructor(context) {
super();
this.context = context;
}
postProcessProperties(pvs, beanInstance, beanName) {
var _a;
if (beanInstance instanceof ApplicationContextAware_1.default && this.context) {
(_a = beanInstance.setApplication) === null || _a === void 0 ? void 0 : _a.call(beanInstance, this.context);
}
return pvs;
}
}
exports.default = ApplicationContextAwareProcessor;