How do I implement a classic Factory Method with Guice? I.e.:
1. I have an interface MyInterface. 2. I have several classes implementing MyInterface. 3. I want to have a factory with one method: MyInterface create(int type) that returns the correct class depending on a given type (of some kind), without a switch statement inside. I'm trying to read about this case but have hard time find a good example? Thanks, Per --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
