@Test public void testLoadBaseConfig() { val config = loader.loadBaseConfig(); assertEquals("kafkasvc:9092", config.getString("streams.bootstrap.servers")); }
public Config loadBaseConfig() { log.info("Loading base configuration: appKey={}", appKey); val baseAppConfigs = ConfigFactory.load(BASE_APP_CONFIG_PATH); val defaultAppConfig = baseAppConfigs.getConfig(CK_KSTREAM_APP_DEFAULT_CONFIG); return baseAppConfigs.getConfig(appKey).withFallback(defaultAppConfig); }
TypesafeConfigLoader { public Config loadBaseConfig() { log.info("Loading base configuration: appKey={}", appKey); val baseAppConfigs = ConfigFactory.load(BASE_APP_CONFIG_PATH); val defaultAppConfig = baseAppConfigs.getConfig(CK_KSTREAM_APP_DEFAULT_CONFIG); return baseAppConfigs.getConfig(appKey).withFallback(defaultAppConfig); } }
TypesafeConfigLoader { public Config loadBaseConfig() { log.info("Loading base configuration: appKey={}", appKey); val baseAppConfigs = ConfigFactory.load(BASE_APP_CONFIG_PATH); val defaultAppConfig = baseAppConfigs.getConfig(CK_KSTREAM_APP_DEFAULT_CONFIG); return baseAppConfigs.getConfig(appKey).withFallback(defaultAppConfig); } TypesafeConfigLoader(String appKey); }
TypesafeConfigLoader { public Config loadBaseConfig() { log.info("Loading base configuration: appKey={}", appKey); val baseAppConfigs = ConfigFactory.load(BASE_APP_CONFIG_PATH); val defaultAppConfig = baseAppConfigs.getConfig(CK_KSTREAM_APP_DEFAULT_CONFIG); return baseAppConfigs.getConfig(appKey).withFallback(defaultAppConfig); } TypesafeConfigLoader(String appKey); Config loadBaseConfig(); Config loadOverridesConfig(); Config loadMergedConfig(); }
TypesafeConfigLoader { public Config loadBaseConfig() { log.info("Loading base configuration: appKey={}", appKey); val baseAppConfigs = ConfigFactory.load(BASE_APP_CONFIG_PATH); val defaultAppConfig = baseAppConfigs.getConfig(CK_KSTREAM_APP_DEFAULT_CONFIG); return baseAppConfigs.getConfig(appKey).withFallback(defaultAppConfig); } TypesafeConfigLoader(String appKey); Config loadBaseConfig(); Config loadOverridesConfig(); Config loadMergedConfig();  }