public void bindProperties(Binder binder) { Names.bindProperties(binder, ConfigurationConverter.getProperties(compositeConfiguration)); }
@Override protected void configure() { Names.bindProperties(super.binder(), properties); new File(properties.getProperty("eventhub.directory")).mkdirs(); }
@Override public void configure(Binder binder) { // Bind PostgreSQL-specific properties JdbcHelper.PostgreSQL.configure(binder); // Bind MyBatis properties Names.bindProperties(binder, myBatisProperties); // Bind JDBC driver properties binder.bind(Properties.class) .annotatedWith(Names.named("JDBC.driverProperties")) .toInstance(driverProperties); }
@Override public void configure(Binder binder) { // Bind MySQL-specific properties JdbcHelper.MySQL.configure(binder); // Bind MyBatis properties Names.bindProperties(binder, myBatisProperties); // Bind JDBC driver properties binder.bind(Properties.class) .annotatedWith(Names.named("JDBC.driverProperties")) .toInstance(driverProperties); }
@Override public void configure(Binder binder) { // Bind SQLServer-specific properties with the configured driver. switch(sqlServerDriver) { case JTDS: JdbcHelper.SQL_Server_jTDS.configure(binder); break; case DATA_DIRECT: JdbcHelper.SQL_Server_DataDirect.configure(binder); break; case MICROSOFT_LEGACY: JdbcHelper.SQL_Server_MS_Driver.configure(binder); break; case MICROSOFT_2005: JdbcHelper.SQL_Server_2005_MS_Driver.configure(binder); break; default: throw new UnsupportedOperationException( "A driver has been specified that is not supported by this module." ); } // Bind MyBatis properties Names.bindProperties(binder, myBatisProperties); // Bind JDBC driver properties binder.bind(Properties.class) .annotatedWith(Names.named("JDBC.driverProperties")) .toInstance(driverProperties); }
@Override protected void configure() { Names.bindProperties(binder(), configurationAccess.getProperties()); Multibinder<IpProvider> ipProviderMultibinder = Multibinder.newSetBinder(binder(), IpProvider.class); ipProviderMultibinder.addBinding().toInstance(commandLinePropertiesAccessor); ipProviderMultibinder.addBinding().to(AwsIpWebService.class); } }
/** * Binds the {@link PropertiesMap} as a whole and, additionally, every single property value * with the annotation {@code @Named("<propKey>")}. */ @Override protected void configure() { bind(PropertiesMap.class).toInstance(properties); Names.bindProperties(binder(), properties); } }
@Override protected void configure() { Names.bindProperties(binder(), properties); binder().bind(I18nResolver.class).toInstance(i18nResolver); binder().bind(JsLocaleResolver.class).toInstance(jsLocaleResolver); binder().bind(WebContextProvider.class).toInstance(webContextProvider); }
@Override protected void configure() { bind(ServiceConfiguration.class).toInstance(this.serviceConfiguration); bind(ConnectionService.class).to(BaseConnectionService.class); if (this.properties != null) { Names.bindProperties(binder(), this.properties.getProperties()); } } }
@Override protected void configure() { bindProperties(binder(), props); } }, new SLF4JLoggingModule());
@Override protected void configure() { Properties toBind = new Properties(); toBind.setProperty(Constants.PROPERTY_API_VERSION, "0.8"); Names.bindProperties(binder(), toBind); }
@Override protected void configure() { Properties toBind = new Properties(); toBind.setProperty(Constants.PROPERTY_API_VERSION, "0.8"); Names.bindProperties(binder(), toBind); }
@Override protected void configure() { bind(LiveConfig.class).toInstance(config); Map<String, String> map = config.asMap(); Names.bindProperties(binder(), map); bindNamedValues(binder(), map.keySet()); }
@Override protected void configure() { Properties props = TerremarkVCloudApiMetadata.defaultProperties(); props.setProperty("jclouds.vcloud.xml.ns", "http://www.vmware.com/vcloud/v0.8"); props.setProperty("jclouds.vcloud.xml.schema", "http://vcloud.safesecureweb.com/ns/vcloud.xsd"); Names.bindProperties(binder(), props); } });
@Override protected void configure() { Names.bindProperties(binder(),new EC2ApiMetadata().getDefaultProperties()); bind(new TypeLiteral<Supplier<String>>() { }).toInstance(Suppliers.ofInstance("1")); bind(EC2Client.class).toInstance(client); }
@Override protected void configure() { Names.bindProperties(binder(),new EC2ApiMetadata().getDefaultProperties()); bind(new TypeLiteral<Supplier<String>>() { }).toInstance(uniqueIdSupplier); bind(EC2Client.class).toInstance(client); }
@Override protected void configure() { Names.bindProperties(binder(), new VCloudApiMetadata().getDefaultProperties()); bind(new TypeLiteral<Function<ReferenceType, Location>>() { }).to(new TypeLiteral<FindLocationForResource>() { }); bind(new TypeLiteral<Function<VApp, Hardware>>() { }).to(new TypeLiteral<HardwareForVApp>() { }); bind(ResourceAllocationSettingDataHandler.class).to(VCloudResourceAllocationSettingDataHandler.class); }
@Override public void configure() { super.configure(); Names.bindProperties(binder(), TerremarkVCloudApiMetadata.defaultProperties()); } });
@Override protected void configure() { bindProperties(binder(), new SoftLayerProviderMetadata().getDefaultProperties()); } }).getInstance(ProductItemsToHardware.class);
@Override public void configure() { super.configure(); Names.bindProperties(binder(), TerremarkVCloudApiMetadata.defaultProperties()); } });