use of com.walmartlabs.ollie.config.ConfigurationProcessor in project concord by walmartlabs.
the class MigrateDB method main.
public static void main(String[] args) throws Exception {
EnvironmentSelector environmentSelector = new EnvironmentSelector();
Config cfg = new ConfigurationProcessor("concord-server", environmentSelector.select()).process();
Injector injector = Guice.createInjector(new WireModule(new SpaceModule(new URLClassSpace(MigrateDB.class.getClassLoader()), BeanScanning.CACHE), new OllieConfigurationModule("com.walmartlabs.concord.server", cfg), new DatabaseModule()));
new MigrateDB().run(injector);
}
use of com.walmartlabs.ollie.config.ConfigurationProcessor in project concord by walmartlabs.
the class ConfigurationModule method configure.
@Override
protected void configure() {
Environment env = new EnvironmentSelector().select();
com.typesafe.config.Config config = new ConfigurationProcessor("concord-server", env, null, null).process();
install(new OllieConfigurationModule("com.walmartlabs.concord.server", config));
}
Aggregations