-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
It would be nice to have a function fromOptionalResource analogous to fromOptionalFile.
Currently I'm doing something like:
private fun ConfigurationProperties.Companion.fromOptionalResource(resourceName: String) =
if (ClassLoader.getSystemResource(resourceName) != null) fromResource(resourceName)
else EmptyConfiguration
private fun konfig(resourceName: String): Configuration = systemProperties() overriding
EnvironmentVariables overriding
ConfigurationProperties.fromOptionalResource(resourceName)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels