Comment #2 on issue 436 by limpbizkit: Provide access to Guice's own internal TypeConverters http://code.google.com/p/google-guice/issues/detail?id=436
If you'd like to submit a patch that adds these constants to the interface, that would be quite reasonable: public static final TypeConverter BOOLEAN_CONVERTER; public static final TypeConverter SHORT_CONVERTER; public static final TypeConverter INTEGER_CONVERTER; public static final TypeConverter LONG_CONVERTER; public static final TypeConverter FLOAT_CONVERTER; public static final TypeConverter DOUBLE_CONVERTER; public static final TypeConverter CHARACTER_CONVERTER; public static final TypeConverter STRING_CONVERTER; public static final TypeConverter ENUM_CONVERTER; public static final TypeConverter CLASS_CONVERTER; You'll need to expose them from TypeConverterBindingProcessor, which should be just fine. Or move them. Note that Guice's type conversion facility isn't really general-purpose; I suspect our performance will be quite horrible if you exceed say, a thousand convertible types (because we always ask all converters whether they can convert a value). -- 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 -~----------~----~----~----~------~----~------~--~---
