UNPKG

@hashgraph/hedera-local

Version:

Developer tooling for running Local Hedera Network (Consensus + Mirror Nodes).

29 lines 1.41 kB
"use strict"; // SPDX-License-Identifier: Apache-2.0 Object.defineProperty(exports, "__esModule", { value: true }); exports.Bootstrapper = void 0; const CLIService_1 = require("./CLIService"); const ClientService_1 = require("./ClientService"); const ConnectionService_1 = require("./ConnectionService"); const DockerService_1 = require("./DockerService"); const LoggerService_1 = require("./LoggerService"); const ServiceLocator_1 = require("./ServiceLocator"); /** * Class responsible for initializing the application. */ class Bootstrapper { /** * Initializes all the services and registers them in the service locator. * @param {yargs.ArgumentsCamelCase<{}>} argv - The command line arguments. */ static initialize(argv) { const verbose = CLIService_1.CLIService.resolveVerboseLevel(argv.verbose); ServiceLocator_1.ServiceLocator.Current.register(new LoggerService_1.LoggerService(verbose)); ServiceLocator_1.ServiceLocator.Current.register(new CLIService_1.CLIService(argv)); ServiceLocator_1.ServiceLocator.Current.register(new DockerService_1.DockerService()); ServiceLocator_1.ServiceLocator.Current.register(new ConnectionService_1.ConnectionService()); ServiceLocator_1.ServiceLocator.Current.register(new ClientService_1.ClientService()); } } exports.Bootstrapper = Bootstrapper; //# sourceMappingURL=Bootstrapper.js.map