We were originally looking at Archaius for our application, because we need to be able to detect changes to the config at runtime (to support things like programmatic reconfiguration of loggers - just an example), but we prefer Typesafe Config's config format over plain properties files (gives us hierarchical structured data and various other nice things). But not being able to be notified that (for example) a new logger has been added to the "logging" object will probably be a deal breaker. And at least on the surface, making this work doesn't look like it would be that complex - just allow the ConfigFactory caller to bypass the cache. And it's already supported for system properties, so someone obviously saw some sort of a use case for it at one point.
Cheers, Shannon On Tuesday, February 11, 2014 8:27:00 PM UTC+10, √ wrote: > > What's the use-case? > > > On Tue, Feb 11, 2014 at 6:33 AM, Shannon Lloyd <[email protected]<javascript:> > > wrote: > >> Hi, >> >> Firstly, I'm aware of this thread: >> https://groups.google.com/forum/#!searchin/akka-user/configfactory/akka-user/md2b192hqLA/bjs6tO9HSBkJ >> >> However, what I'd like to know is, is it possible to disable caching? The >> Javadoc for ConfigFactory.invalidateCaches states that it "Reloads any >> cached configs", although when you look at it, it's obviously only >> invalidating the cache of system properties, not all configs. Similarly, >> the Javadoc for ConfigFactory.load specifically states to use >> invalidateCaches in order "to force it to reload", so reloading config is >> clearly something that has been thought about at some stage. >> >> Is it possible to disable caching? If not, was it deliberately excluded >> for some reason? Other than lacking the ability to reload, the Config >> library suits our project perfectly, so it would be great if there were >> some way to do this. >> >> Cheers, >> Shannon >> >> >> -- >> >>>>>>>>>> Read the docs: http://akka.io/docs/ >> >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user >> --- >> You received this message because you are subscribed to the Google Groups >> "Akka User List" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/akka-user. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Cheers, > √ > > * ——————— **Viktor Klang* > *Chief Architect - **Typesafe <http://www.typesafe.com/>* > > Twitter: @viktorklang > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/groups/opt_out.
