@malagu/core
Version:
34 lines • 1.71 kB
JavaScript
;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommonApplication = void 0;
const annotation_1 = require("../annotation");
const application_protocol_1 = require("./application-protocol");
let CommonApplication = class CommonApplication extends application_protocol_1.AbstractApplication {
async start() {
await this.doStart();
this.stateService.state = 'started';
this.stateService.state = 'ready';
}
async stop() {
this.doStop();
this.stateService.state = 'stoped';
}
};
__decorate([
(0, annotation_1.Autowired)(application_protocol_1.ApplicationStateService),
__metadata("design:type", Object)
], CommonApplication.prototype, "stateService", void 0);
CommonApplication = __decorate([
(0, annotation_1.Component)(application_protocol_1.Application)
], CommonApplication);
exports.CommonApplication = CommonApplication;
//# sourceMappingURL=application.js.map