matteobaccan/owner

[Question] Owner configuration library whether support the config file that similar to JSon format?

Opened this issue · 6 comments

Hi,
Thanks for your hard work for providing this excellent configuration library, I am very enjoying using the library in my Java projects.

Now I have a question about the library that whether support the configuration file format similar JSon, which supported by TypeSafe Config.
As QA development engineer, in my current projects, I am have huge config file that format similar to JSon (maybe it is the JSon format exactly?), for example:

site {
  url {
    uat: http://xxxxxx1
    dev: http://xxxxx2
  }
}

credential {
  account: name
  password: pwd
}

in the code get the UAT url from the config file, such like: getString("site.url.uat"), get account of credential from the config file, such like: getString("credential.account").

so for Owner configuration library, is support this formated config file now?

Thanks.

存储JSON格式的的config文件,我方案暂时只是使用mongodb来做,自己实现配置文件增删改查。如果您的项目能够能够增加json格式的config文件管理那真的是我们的福音。希望得到开发者的答复,祝好

savkk commented

You have to implement Loader interface. Also you can try to use my implementation, maybe it will do. https://github.com/savkk/owner-json-ext

@tender2017
Library from typesafe Config supports the config format by dot

@savkk
Thanks @savkk , let me check your implementation

Hi.

I am planning to reimplement a new version of owner to support yaml and json.
At the moment, only basic support can be added using existing APIs.

I have no plan on when the new "owner" (it may have a new name) will be released (nor started).

The good news is that I am back to coding, after loooong time off.

Thanks for your patience guys!

L.

Actually, I am not dedicating time to this project. I know I should, since I like it and I used myself in the last project at my current job.

I cannot guarantee, since my life is quite changed since I had health problems, and my free time is dedicated to many things (including, recently, staying safe from pandemic coronavirus in Italy). So please be understanding.