Updates:
Status: Fixed
Comment #4 on issue 287 by limpbizkit: ConvertedConstantBinding should have
a getSourceKey() method
http://code.google.com/p/google-guice/issues/detail?id=287
Code fixed with r743. I fixed the Javadoc with r744:
* <pre>
* bindConstant().annotatedWith(ServerHost.class).to(args[0]);</pre>
*
* Sets up a constant binding. Constant injections must always be annotated.
* When a constant binding's value is a string, it is eligile for
conversion to
* all primitive types, to {...@link Enum#valueOf(Class, String) all enums},
and to
* {...@link Class#forName class literals}. Conversions for other types can be
* configured using {...@link #convertToTypes(Matcher, TypeConverter)
* convertToTypes()}.
--
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
-~----------~----~----~----~------~----~------~--~---