Comment by cgdecker:

@blaine.dev: I'm not sure, but perhaps you're confusing the bootstrap class for an application where the `Injector` is created with the "client class" from the example, which is just a class within the application that depends on the configuration parameter... it's the client that talks to the Foo Server for which the address is injected.

The example assumes you get this `fooServerAddress` property from somewhere else prior to initializing Guice... the command line or perhaps WebStart's `BasicService`, say. For configuration parameters that you want to read from a file, `Names.bindProperties` works great.

If there's something specific that you think is lacking, could you explain what that is? Guice makes it pretty easy to extend it to do what you need, generally.

For more information:
http://code.google.com/p/google-guice/wiki/FrequentlyAskedQuestions

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" 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-dev?hl=en.

Reply via email to