Search in sources :

Example 1 with YamlConfigModule

use of org.bitbucket.kilda.controller.guice.module.YamlConfigModule in project open-kilda by telstra.

the class Main method main.

public static void main(String[] args) {
    try {
        Main.Initialize(args);
        Injector injector = Guice.createInjector(new YamlConfigModule(System.getProperty("controller.config.overrides.file")));
        Main main = injector.getInstance(Main.class);
        main.Startup();
    } catch (Exception e) {
        e.printStackTrace();
    }
}
Also used : YamlConfigModule(org.bitbucket.kilda.controller.guice.module.YamlConfigModule) Injector(com.google.inject.Injector)

Aggregations

Injector (com.google.inject.Injector)1 YamlConfigModule (org.bitbucket.kilda.controller.guice.module.YamlConfigModule)1