Hi - is there a `ConfigLoaderBuilder` recipe that ...
# hoplite
d
Hi - is there a
ConfigLoaderBuilder
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-behavior
s
In terms of the file names ?
d
I think it might only be the file names... the names it optionally searches, and the ability optionally to pass in an alternative path. I see that the default builder handles property overrides, which answers the other part of my question.
TBH, I'm not sure whether, for most scenarios, Hoplite's approach might be preferable to Lightbend's. Writing some tests to see how they compare...
s
Hoplite is not prescriptive on the file names, whereas typesafe config kinda encourages the reference.conf structure
d
Yeah - I think that "opinionated view" is really useful in many scenarios, as it points developers towards separating environment-specific configurations and defaulted configurations. But it's easy to reproduce that approach in HopLite - assuming developers know why it's a good pattern to use.