@Test public void testDefaultInstaller() { final String i = "some name,www.crosswire.org,/ftpmirror/pub/sword/packages/rawzip,/ftpmirror/pub/sword/raw"; final Properties p = new Properties(); p.put("installer.1", i); final DefaultInstallersProvider defaultInstallersProvider = new DefaultInstallersProvider(p, "localhost", "8080"); final String def = defaultInstallersProvider.get().get(0).getInstallerDefinition(); assertEquals("www.crosswire.org,/ftpmirror/pub/sword/packages/rawzip," + "/ftpmirror/pub/sword/raw,,localhost,8080", def); }
@Override public List<Installer> get() { if (this.installers == null) { synchronized (this) { if (this.installers == null) { this.installers = initialiseInstallers(); } } } return this.installers; }
DefaultInstallersProvider implements Provider<List<Installer>> { @Override public List<Installer> get() { if (this.installers == null) { synchronized (this) { if (this.installers == null) { this.installers = initialiseInstallers(); } } } return this.installers; } }
DefaultInstallersProvider implements Provider<List<Installer>> { @Override public List<Installer> get() { if (this.installers == null) { synchronized (this) { if (this.installers == null) { this.installers = initialiseInstallers(); } } } return this.installers; } @Inject  DefaultInstallersProvider(@Named("StepCoreProperties") final Properties stepProperties,
            @Named("app.proxy.host") final String proxyHost, @Named("app.proxy.port") final String proxyPort); }
DefaultInstallersProvider implements Provider<List<Installer>> { @Override public List<Installer> get() { if (this.installers == null) { synchronized (this) { if (this.installers == null) { this.installers = initialiseInstallers(); } } } return this.installers; } @Inject  DefaultInstallersProvider(@Named("StepCoreProperties") final Properties stepProperties,
            @Named("app.proxy.host") final String proxyHost, @Named("app.proxy.port") final String proxyPort); @Override List<Installer> get(); }
DefaultInstallersProvider implements Provider<List<Installer>> { @Override public List<Installer> get() { if (this.installers == null) { synchronized (this) { if (this.installers == null) { this.installers = initialiseInstallers(); } } } return this.installers; } @Inject  DefaultInstallersProvider(@Named("StepCoreProperties") final Properties stepProperties,
            @Named("app.proxy.host") final String proxyHost, @Named("app.proxy.port") final String proxyPort); @Override List<Installer> get();  }