Guice.createInjector(
new ServletModule() {
@Override
public void configureServlets() {
bind(SomeService.class).to(SomeServiceImpl.class);
serve("/module1").with(Module1Servlet.class);
}
},
new ServletModule() {
@Override
public void configureServlets() {
bind(SomeOtherService.class).to(SomeOtherServiceImpl.class);
serve("/module2").with(Module2Servlet.class);
}
});
--To view this discussion on the web visit https://groups.google.com/d/msg/google-guice/-/uPhN9tpEt-gJ.
You received this message because you are subscribed to the Google Groups "google-guice" group.
To post to this group, send email to google...@googlegroups.com.
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.