Comment #3 on issue 287 by phopkins: ConvertedConstantBinding should have a getSourceKey() method http://code.google.com/p/google-guice/issues/detail?id=287
If only Strings undergo conversion, is it correct for the EDSL doc in Binder.java to state: bindConstant().annotatedWith(ServerHost.class).to(args[0]); Sets up a constant binding. Constant bindings are typeless in Guice; you can provide the values in a variety of types and the values can be injected in a variety of types; Guice performs the standard type conversions for you behind the scenes. Anecdotally, binding an Integer w/ a @Named and trying to @Inject it as a Float did not seem to be successful. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
