On Friday, April 10, 2015 at 2:13:16 PM UTC-4, Jens wrote:
>
> Whats wrong with Names.bindProperties(binder, myProps) provided by Guice? 
> Isn't that effectively the same?
>

Nothing, but there's a little more to it with Giulius:

 - Layering sets of properties on top of each other (e.g. layer 
$JAR/META-INF/settings/generated-foo.properties, /etc/foo.properties, 
~/foo.properties, ./foo.properties) on top of each other so you can have 
defaults (annotation generated), system-wide, per-user and per-install 
properties, and parsing sendopts-style command-line argumenst (--foo bar) 
overlaid over that

 - Optional periodic refresh of file-based properties

 - Ability to replace properties files with loading config from a 
centralized config server such as etcd 
- https://github.com/timboudreau/giulius-settings-etcd - or zookeeper or 
similar, without major surgery

 - Ability to use @Namespace to choose the source of bound properties (i.e. 
when injecting @Named, giulius will check what class/package it's injecting 
into and select the right Settings to pull from) - useful in old codebases 
that read from heterogenous properties files

 - Having a test harness that lets test methods take injected arguments, 
which understands this stuff (i.e. you can override properties for a test 
using annotations or a properties file with the same name as the test) 
- https://github.com/timboudreau/giulius-tests

-Tim

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" 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/google-guice.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-guice/a5deaf27-d412-4d9e-bfd3-afb10e856c68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to