Re: Complex config

2017-06-15 Thread Guillaume Nodet
> > Thanks in advance! > > > > -- > View this message in context: http://karaf.922171.n3.nabble. > com/Complex-config-tp4043584p4050746.html > Sent from the Karaf - User mailing list archive at Nabble.com. > -- Guillaume Nodet

Re: Complex config

2017-06-14 Thread dynamodan
iew this message in context: http://karaf.922171.n3.nabble.com/Complex-config-tp4043584p4050746.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Complex config

2015-11-18 Thread Benson Margulies
On Wed, Nov 18, 2015 at 12:39 PM, Jean-Baptiste Onofré wrote: > Hi Benson, > > It's something that we do in Decanter (with elasticsearch.yaml, but it's > just a load), or in Cellar (with Hazelcast XML parsing), or in Pax Web (when > refering the jetty.xml). > > What do you

Re: Complex config

2015-11-18 Thread Jean-Baptiste Onofré
Hi Benson, It's something that we do in Decanter (with elasticsearch.yaml, but it's just a load), or in Cellar (with Hazelcast XML parsing), or in Pax Web (when refering the jetty.xml). What do you mean exactly ? You want to load the yaml configuration in ConfigAdmin ? In that case, it's

Complex config

2015-11-18 Thread Benson Margulies
I've got some cases where I made a .cfg file point to a .yaml file because I had a complex configuration. The API to config admin sort of suggests that it might be possible to have more complex data structures so long as the top-level is key-value; is this actually doable, and, if so, how?

Re: Complex config

2015-11-18 Thread Pavel E. Shirshov
Any complex structure may be flattened. Example for HOCON: https://gist.github.com/FeiWongReed/44799f4461c43f8e83c2 On 18/11/15 17:44, Benson Margulies wrote: > On Wed, Nov 18, 2015 at 12:39 PM, Jean-Baptiste Onofré > wrote: >> Hi Benson, >> >> It's something that we do in

Re: Complex config

2015-11-18 Thread Benson Margulies
Pavel, as I haven't coded in scala, this will take some digesting. On Wed, Nov 18, 2015 at 1:30 PM, Pavel E. Shirshov <pshirs...@gmail.com> wrote: > That's exactly my sample about. > > It's simple idea how to implement complex config over Karaf k-v storage. > Even with dynamic

Re: Complex config

2015-11-18 Thread Pavel E. Shirshov
mail.com> > wrote: >> That's exactly my sample about. >> >> It's simple idea how to implement complex config over Karaf k-v storage. >> Even with dynamic reload. Just look at the gist. >> >> On 18/11/15 18:12, Benson Margulies wrote: >>> I realize

Re: Complex config

2015-11-18 Thread David Jencks
(hope this is not showing up multiple times, I’ve been having mail problems, have now subscribed from a different account….). I think some kind of flattening is a good idea as otherwise you have coordination problems between multiple configs. Felix ds actually supports consuming flattening