Refactor how we tie the SSH objects into the HTTP injector

Split the SSH stuff into its own Guice module, allowing more direct
replacement of the SSH objects when the SSH daemon is disabled, or
is not being loaded into a particular server runtime.

Change-Id: Ibe79f394110e4d3d0d21c5f1473f306ed8f49e7c
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2010-06-09 17:22:29 -07:00
parent 7af8f48af9
commit f2a22761dd
4 changed files with 50 additions and 14 deletions

View File

@@ -197,6 +197,7 @@ public class WebAppInitializer extends GuiceServletContextListener {
private Injector createWebInjector() {
final List<Module> modules = new ArrayList<Module>();
modules.add(sshInjector.getInstance(WebModule.class));
modules.add(sshInjector.getInstance(WebSshGlueModule.class));
return sysInjector.createChildInjector(modules);
}