Thanks Bob, override() seems to be able to do the job. I was expecting something more straightforward, but at least with override I can accomplish my goal.
My current thinking is to put the default @Named binding values in the main Guice Module (In the configure()) to override them with a "Properties Guice Module" which will just bind the .properties file (s). Jeremy, On Dec 31 2009, 1:26 pm, Bob Lee <[email protected]> wrote: > See Modules.override(). > > On Dec 31, 2009 3:24 PM, "Jeremy Chone" <[email protected]> wrote: > > Hi, > > I am still confused about something with Google Guice. What is the > best practice to override default properties values. Basically, I > would like to have some default value in Java code, but allow to > override them with .properties file(s). > > What is the best way to do that? > > Jeremy, > > -- > > You received this message because you are subscribed to the Google Groups > "google-guice" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-guice%2bunsubscr...@google > groups.com> > . > For more options, visit this group > athttp://groups.google.com/group/google-guice?hl=en. -- You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
