327328329330331332333334335336337
if (sshd) { modules.add(sysInjector.getInstance(SshModule.class)); if (slave) { modules.add(new SlaveCommandModule()); } else { modules.add(new MasterCommandModule()); } } else { modules.add(new NoSshModule()); } return sysInjector.createChildInjector(modules);
215216217218219220221222
} private Injector createSshInjector() { final List<Module> modules = new ArrayList<Module>(); modules.add(sysInjector.getInstance(SshModule.class)); modules.add(new MasterCommandModule()); return sysInjector.createChildInjector(modules); }