II have two bindings in my parent module like this: bind(A.class).annotatedWith(Names.named("a1")).to(A1.class); bind(A.class).annotatedWith(Names.named("a2")).to(A2.class);
I also have generic servlet class: class XServlet<T extends A> extends HttpServlet {...} In another module (ServletModule) I want to register this servlet twice with different type parameters, A1 & A2 respectively. Is there a way I can do that without specifying A1 & A2 explicitely, but rather using bindings mentioned above? serve("/a1").with(???) serve("/a2").with(???) Can this be done at all? -- You received this message because you are subscribed to the Google Groups "google-guice" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-guice/-/i5UUZIv0Vg4J. To post to this group, send email to google-guice@googlegroups.com. To unsubscribe from this group, send email to google-guice+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.