"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventCentral = void 0;
const event_end_point_js_1 = require("./event-end-point.js");
class EventCentral {
    endPoints = {};
    has(name) {
        return this.endPoints[name] !== undefined;
    }
    get(name) {
        if (!this.has(name)) {
            this.endPoints[name] = new event_end_point_js_1.EventEndPoint(name);
        }
        return this.endPoints[name];
    }
}
exports.EventCentral = EventCentral;
