I think it worth to mention in documentation, about how to control the order of reference.conf files merging, when you initialize your configuration.
For instance, commonly used library akka-actor have own configuration in reference.conf. I've created a library, that hardly uses akka-actor and redefines some of theirs configuration in own reference.conf. Then I try to get them both merged on ConfigFactory.load(). But there is no guarantee in which order those reference.confs will be read from resources.
I did some investigation before came up with solution. Here is corresponding question on stackoverflow: http://stackoverflow.com/questions/31698605/hocon-multiple-reference-conf-resolution-issue/31727841
Please, consider to mention in your documentation about how to control the order of reference.confs merging.
Thanks!
I think it worth to mention in documentation, about how to control the order of
reference.conffiles merging, when you initialize your configuration.For instance, commonly used library
akka-actorhave own configuration inreference.conf. I've created a library, that hardly usesakka-actorand redefines some of theirs configuration in ownreference.conf. Then I try to get them both merged onConfigFactory.load(). But there is no guarantee in which order thosereference.confs will be read from resources.I did some investigation before came up with solution. Here is corresponding question on stackoverflow: http://stackoverflow.com/questions/31698605/hocon-multiple-reference-conf-resolution-issue/31727841
Please, consider to mention in your documentation about how to control the order of
reference.confs merging.Thanks!