On May 30, 8:52 am, Per <[email protected]> wrote: > How do I implement a classic Factory Method with Guice?
The simple solution is to just write your factory class using plain old Java code. Give it an @Inject-annotated constructor so your factory can be injected and make sure the factory method create() is non-static. You might also want to take a gander at AssistedInject. http://code.google.com/docreader/#p=google-guice&s=google-guice&t=AssistedInject --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
