Eduard Boloș
08/12/2018, 9:47 PMcom.typesafe.config.Config
object, am I missing something?robin
08/13/2018, 6:59 PMfun ApplicationConfig.getHoconConfig(): Config {
require(this is HoconApplicationConfig)
val internalConfigField = HoconApplicationConfig::class.java.getDeclaredField("config")
internalConfigField.isAccessible = true
return internalConfigField.get(this) as Config
}
I just call that function when starting the server to retrieve the actual config, works fine so far.Eduard Boloș
08/13/2018, 8:26 PMConfig
object similar to how it’s done in CommandLine.kt
, but again, I have a hard time accessing the arguments the application was started with 😐