use of com.walmartlabs.concord.runtime.v2.runner.guice.DefaultRunnerModule in project concord by walmartlabs.
the class InjectorFactory method createDefault.
public static Injector createDefault(RunnerConfiguration runnerCfg) {
Path src = Paths.get(System.getProperty("user.dir"));
Provider<ProcessConfiguration> processCfgProvider = new DefaultProcessConfigurationProvider(src);
WorkingDirectory workDir = new WorkingDirectory(src);
return new InjectorFactory(workDir, runnerCfg, processCfgProvider, // bind default services
new DefaultRunnerModule(), // grab process dependencies
new ProcessDependenciesModule(workDir.getValue(), runnerCfg.dependencies(), runnerCfg.debug())).create();
}
Aggregations