On Wed, Oct 21, 2009 at 8:46 PM, eric <[email protected]> wrote: > > Hi Dhanji, > > It seems the bind().toConstructor() is not documented, could you > please tell me more about it? >
It allows you to bind to any constructor (not just those annotated with @Inject). It takes an argument of type Constructor<T>, from the java reflection library. Take a look at some of the unit tests in guice core to see how it is used. Dhanji. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice" 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?hl=en -~----------~----~----~----~------~----~------~--~---
