Not really answering your question, but why not simply inject the map? Or inject a singleton helper wrapping that map and providing these methods for you?
-- Cédric On Mon, Nov 25, 2013 at 6:57 PM, Benson Margulies <[email protected]>wrote: > At the moment, I'd like to use guice to do one very constrained bit of DI. > > Given a Map<String, Object>, and an Object with some annotations that > indicate injection targets, inject the values from the map into the target > object, performing simple type conversions (string->int, string->File, etc). > > Where would I look, if anywhere, in the Guice API to do this? > > -- > You received this message because you are subscribed to the Google Groups > "google-guice" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-guice. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/groups/opt_out.
