@Override protected void bindTemporaryUrlKeyApi() { bindSyncToAsyncHttpApi(binder(), TemporaryUrlKeyApi.class, KeystoneTemporaryUrlKeyAsyncApi.class); } }
@Override protected void configure() { // AuthenticationApi is used directly for filters and retry handlers, so // let's bind it explicitly bindSyncToAsyncHttpApi(binder(), CloudIdentityAuthenticationApi.class, CloudIdentityAuthenticationAsyncApi.class); }
@Override protected void configure() { // AuthenticationApi is used directly for filters and retry handlers, so let's bind it explicitly bindSyncToAsyncHttpApi(binder(), AuthenticationApi.class, AuthenticationAsyncApi.class); }
@Override protected void configure() { // AuthenticationApi is used directly for filters and retry handlers, so let's bind it explicitly bindSyncToAsyncHttpApi(binder(), AuthenticationApi.class, AuthenticationAsyncApi.class); }
@Override protected void configure() { // AuthenticationApi is used directly for filters and retry handlers, so let's bind it explicitly bindSyncToAsyncHttpApi(binder(), AuthenticationApi.class, AuthenticationAsyncApi.class); }
protected void bindTemporaryUrlKeyApi() { bindSyncToAsyncHttpApi(binder(), TemporaryUrlKeyApi.class, TemporaryUrlKeyAsyncApi.class); }
@Override protected void configure() { // AuthenticationApi is used directly for filters and retry handlers, so // let's bind it explicitly bindSyncToAsyncHttpApi(binder(), CloudIdentityAuthenticationApi.class, CloudIdentityAuthenticationAsyncApi.class); }
@Override protected void configure() { // datacenter api is needed for obtaining zone ids bindSyncToAsyncHttpApi(binder(), DatacenterApi.class, DatacenterAsyncApi.class); bind(ImplicitLocationSupplier.class).to(OnlyLocationOrFirstZone.class).in(Scopes.SINGLETON); bind(ZoneIdToURISupplier.class).to(ZoneIdToURIFromDatacentersApi.class).in(Scopes.SINGLETON); bind(ZoneIdsSupplier.class).to(ZoneIdsFromZoneIdToURIKeySet.class).in(Scopes.SINGLETON); } }
@Override protected void configure() { bind(new TypeLiteral<Map<Class<?>, Class<?>>>() { }).toInstance(sync2Async); bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeSyncToAsyncHttpMethod.class); BinderUtils.bindSyncToAsyncHttpApi(binder(), HttpClient.class, HttpAsyncClient.class); }
@Override protected void configure() { bind(new TypeLiteral<Map<Class<?>, Class<?>>>() { }).toInstance(sync2Async); bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeSyncToAsyncHttpMethod.class); BinderUtils.bindSyncToAsyncHttpApi(binder(), HttpClient.class, HttpAsyncClient.class); }
@Override protected void configure() { bind(new TypeLiteral<Map<Class<?>, Class<?>>>() { }).toInstance(sync2Async); bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeSyncToAsyncHttpMethod.class); BinderUtils.bindSyncToAsyncHttpApi(binder(), HttpClient.class, HttpAsyncClient.class); }
@Override protected void configure() { // OpenStackAuthClient is used directly for filters and retry handlers, so let's bind it explicitly bindSyncToAsyncHttpApi(binder(), OpenStackAuthClient.class, OpenStackAuthAsyncClient.class); install(new FactoryModuleBuilder().build(URIFromAuthenticationResponseForService.Factory.class)); bind(HttpRetryHandler.class).annotatedWith(ClientError.class).to(RetryOnRenew.class); }
@Override protected void configure() { // OpenStackAuthClient is used directly for filters and retry handlers, so let's bind it explicitly bindSyncToAsyncHttpApi(binder(), OpenStackAuthClient.class, OpenStackAuthAsyncClient.class); install(new FactoryModuleBuilder().build(URIFromAuthenticationResponseForService.Factory.class)); bind(HttpRetryHandler.class).annotatedWith(ClientError.class).to(RetryOnRenew.class); }
@Override protected void configure() { // OpenStackAuthClient is used directly for filters and retry handlers, so let's bind it explicitly bindSyncToAsyncHttpApi(binder(), OpenStackAuthClient.class, OpenStackAuthAsyncClient.class); install(new FactoryModuleBuilder().build(URIFromAuthenticationResponseForService.Factory.class)); bind(HttpRetryHandler.class).annotatedWith(ClientError.class).to(RetryOnRenew.class); }
@Override protected void configure() { super.configure(); install(invocationModule); bindSyncToAsyncHttpApi(binder(), syncClientType.getRawType(), asyncClientType.getRawType()); bindErrorHandlers(); bindRetryHandlers(); }
@Override protected void configure() { super.configure(); install(invocationModule); bindSyncToAsyncHttpApi(binder(), syncClientType.getRawType(), asyncClientType.getRawType()); bindErrorHandlers(); bindRetryHandlers(); }
@Override protected void configure() { super.configure(); install(invocationModule); bindSyncToAsyncHttpApi(binder(), syncClientType.getRawType(), asyncClientType.getRawType()); bindErrorHandlers(); bindRetryHandlers(); }
@Override protected void configure() { // ServiceClient is used directly for filters and retry handlers, so let's bind it explicitly bindSyncToAsyncHttpApi(binder(), AuthenticationClient.class, AuthenticationAsyncClient.class); install(new FactoryModuleBuilder().implement(RegionIdToURISupplier.class, RegionIdToURIFromAuthForServiceSupplier.class).build(RegionIdToURISupplier.Factory.class)); install(new FactoryModuleBuilder().implement(ImplicitRegionIdSupplier.class, V1DefaultRegionIdSupplier.class) .build(V1DefaultRegionIdSupplier.Factory.class)); bind(HttpRetryHandler.class).annotatedWith(ClientError.class).to(RetryOnRenew.class); }
@Override protected void configure() { // ServiceClient is used directly for filters and retry handlers, so let's bind it explicitly bindSyncToAsyncHttpApi(binder(), AuthenticationClient.class, AuthenticationAsyncClient.class); install(new FactoryModuleBuilder().implement(RegionIdToURISupplier.class, RegionIdToURIFromAuthForServiceSupplier.class).build(RegionIdToURISupplier.Factory.class)); install(new FactoryModuleBuilder().implement(ImplicitRegionIdSupplier.class, V1DefaultRegionIdSupplier.class) .build(V1DefaultRegionIdSupplier.Factory.class)); bind(HttpRetryHandler.class).annotatedWith(ClientError.class).to(RetryOnRenew.class); }
@Override protected void configure() { // ServiceClient is used directly for filters and retry handlers, so let's bind it explicitly bindSyncToAsyncHttpApi(binder(), AuthenticationClient.class, AuthenticationAsyncClient.class); install(new FactoryModuleBuilder().implement(RegionIdToURISupplier.class, RegionIdToURIFromAuthForServiceSupplier.class).build(RegionIdToURISupplier.Factory.class)); install(new FactoryModuleBuilder().implement(ImplicitRegionIdSupplier.class, V1DefaultRegionIdSupplier.class) .build(V1DefaultRegionIdSupplier.Factory.class)); bind(HttpRetryHandler.class).annotatedWith(ClientError.class).to(RetryOnRenew.class); }