efemoney
06/03/2020, 1:17 AMval Application.cronUsername by this.environment.config
this
will refer to the receiver ie the Application
. Is there any limitation I’m missing why its not possible right now?gildor
06/03/2020, 3:17 AMgildor
06/03/2020, 3:17 AMgildor
06/03/2020, 3:18 AMnatpryce
06/03/2020, 8:08 AMval Application.cronUsername get() =
environment.config[“app.cron.username”]
efemoney
06/03/2020, 8:10 AMefemoney
06/03/2020, 8:14 AMefemoney
06/03/2020, 8:18 AMval Application.app_cron_username by environment.config
and the getValue will transform the property.name into keyefemoney
06/03/2020, 8:21 AMval Application.port: Int by environment.config
where getValue will have if (T::class == Int::class) getPropertyString("...").toInt()
efemoney
06/03/2020, 8:24 AMefemoney
06/03/2020, 8:26 AMnatpryce
06/03/2020, 8:49 AM