@bitloops/bl-transpiler
Version:
The one and only Bitloops Language transpiler
18 lines • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BoundedContextModuleBuilderDirector = void 0;
const boundedContextModuleBuilder_js_1 = require("./boundedContextModuleBuilder.js");
const wordsWithSpacesBuilder_js_1 = require("./wordsWithSpacesBuilder.js");
class BoundedContextModuleBuilderDirector {
builder;
constructor() {
this.builder = new boundedContextModuleBuilder_js_1.BoundedContextModuleBuilder();
}
buildBoundedContextModule({ boundedContextName, moduleName, }) {
const boundedContext = new wordsWithSpacesBuilder_js_1.WordsWithSpacesBuilder().withName(boundedContextName).build();
const module = new wordsWithSpacesBuilder_js_1.WordsWithSpacesBuilder().withName(moduleName).build();
return this.builder.withBoundedContext(boundedContext).withModule(module).build();
}
}
exports.BoundedContextModuleBuilderDirector = BoundedContextModuleBuilderDirector;
//# sourceMappingURL=boundedContextModuleBuilderDirector.js.map