Search in sources :

Example 1 with DefaultRunnerModule

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();
}
Also used : Path(java.nio.file.Path) WorkingDirectory(com.walmartlabs.concord.runtime.v2.sdk.WorkingDirectory) ProcessConfiguration(com.walmartlabs.concord.runtime.v2.sdk.ProcessConfiguration) ProcessDependenciesModule(com.walmartlabs.concord.runtime.v2.runner.guice.ProcessDependenciesModule) DefaultRunnerModule(com.walmartlabs.concord.runtime.v2.runner.guice.DefaultRunnerModule)

Aggregations

DefaultRunnerModule (com.walmartlabs.concord.runtime.v2.runner.guice.DefaultRunnerModule)1 ProcessDependenciesModule (com.walmartlabs.concord.runtime.v2.runner.guice.ProcessDependenciesModule)1 ProcessConfiguration (com.walmartlabs.concord.runtime.v2.sdk.ProcessConfiguration)1 WorkingDirectory (com.walmartlabs.concord.runtime.v2.sdk.WorkingDirectory)1 Path (java.nio.file.Path)1