Hi,
Can I do something like this? And/or is there a better way to allow more
than one module to contribute servlets?
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);
}
});
Thanks,
Lorant
--
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/-/t1DfEnBmYqsJ.
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.