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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user