Thanks for your replies. They give me some idea of the "Guice way". I'll make the utilities non-static and let Guice create the instance for me.
Now, if you don't mind, give me a hint on this one: I have a Settings object that is a wrapper for a settings.xml file. I instantiate it using Guice. As reading the .xml takes time it should only happen once during the execution of the program, but I need the values (that should be accessed through the wrapper object once it has loaded the .xml content) multiple times. The trouble (in my head) now is that I cannot bind() an instance of the Settings wrapper in my Guice module because I need the injector that will be created using just this module for creating the instance. How can this be adressed? -- 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.
