dave08
05/24/2022, 1:05 PMdave08
05/24/2022, 1:06 PMDan T
09/07/2022, 1:55 PMMap<String, Any>
?
The error trying to use with the following sample values with a hocon source results in Unable to locate a decoder for class kotlin.Any
props {
intVal = 1
stringVal = "a"
}
I'm using it to populate a java.util.Properties
object. I don't see a Decoder available out of the box, so before I explore a custom Decoder thought I'd check in case I'm missing something simple. Thanks!Christopher Porto
10/13/2022, 5:16 AMdata class ExampleConfig(val test: Boolean)
EXAMPLE_TEST=true
sam
10/13/2022, 5:21 AMChristopher Porto
10/13/2022, 5:22 AMTEST=true
but want it so when i load the config i can pass prefix like "EXAMPLE" and it would expect "EXAMPLE_TEST=true"
sam
10/13/2022, 5:23 AMChristopher Porto
10/13/2022, 5:24 AMsam
10/13/2022, 5:24 AMsam
10/13/2022, 5:24 AMChristopher Porto
10/13/2022, 5:24 AMsam
10/13/2022, 5:24 AMChristopher Porto
10/13/2022, 5:24 AMConfigLoaderBuilder.default()
.addPropertySource(EnvironmentVariablesPropertySource(useUnderscoresAsSeparator = true, allowUppercaseNames = true))
.build()
.loadConfigOrThrow<SomeConfig>()
sam
10/13/2022, 5:26 AMChristopher Porto
10/13/2022, 5:26 AMsam
10/13/2022, 5:28 AMChristopher Porto
10/13/2022, 5:29 AMsam
10/13/2022, 5:30 AMChristopher Porto
10/13/2022, 5:31 AMsam
10/13/2022, 5:32 AMsam
10/13/2022, 5:35 AMsam
10/13/2022, 5:35 AMsam
10/13/2022, 5:36 AMChristopher Porto
10/13/2022, 5:44 AMsam
10/13/2022, 5:46 AMdave08
02/08/2023, 12:44 PMdata class AppConfigs(val fooSet: Set<Foo> = emptySet())
where fooSet
might be empty?David Hamilton
07/15/2023, 8:26 AMConfigLoaderBuilder
recipe that mimics the opinionated default loader behaviour of TypeSafe/Lightbend Config, including fallbacks and the various optional property overrides?
https://github.com/lightbend/config/blob/main/README.md#standard-behaviorDavid Hamilton
07/17/2023, 10:43 AMReloadableConfig
) that forces expiry of cached values?Dan T
09/20/2023, 5:10 PMwithReport
feature and its related decorators like the HashObfuscator...I don't see it documented yet though, so wondering if it's already documented somewhere, or if you're intentionally not documenting it yet for any reason? If not, lemmeno and I'd be willing to submit a PR for its documentation.sam
09/20/2023, 6:26 PM