google-code-export / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
2 stars 1 forks source link

Support custom constant type converters #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Maybe support conversion for normal bindings, too.

Original issue reported on code.google.com by crazybob...@gmail.com on 22 Feb 2007 at 7:13

GoogleCodeExporter commented 9 years ago
Here's a patch that implements custom converters.  To use it do
binder().bindConverter(type, converter);

Original comment by mike...@gmail.com on 6 May 2007 at 11:23

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for the patch. I ended up building something a little more flexible 
so we
could support use cases like generic types and the enum converter.

Original comment by crazybob...@gmail.com on 9 Sep 2007 at 3:42