From fbe9f945e7f8812f113be708a766695c7dd99b9c Mon Sep 17 00:00:00 2001 From: adriancole Date: Wed, 10 Apr 2013 08:57:32 -0700 Subject: [PATCH] rename bindMappedApi -> bindSyncToAsyncApi --- .../filesystem/config/FilesystemBlobStoreContextModule.java | 4 ++-- .../blobstore/config/TransientBlobStoreContextModule.java | 4 ++-- core/src/main/java/org/jclouds/rest/config/BinderUtils.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apis/filesystem/src/main/java/org/jclouds/filesystem/config/FilesystemBlobStoreContextModule.java b/apis/filesystem/src/main/java/org/jclouds/filesystem/config/FilesystemBlobStoreContextModule.java index d67dd9ac45..096b9b6bd8 100644 --- a/apis/filesystem/src/main/java/org/jclouds/filesystem/config/FilesystemBlobStoreContextModule.java +++ b/apis/filesystem/src/main/java/org/jclouds/filesystem/config/FilesystemBlobStoreContextModule.java @@ -18,7 +18,7 @@ */ package org.jclouds.filesystem.config; -import static org.jclouds.rest.config.BinderUtils.bindMappedApi; +import static org.jclouds.rest.config.BinderUtils.bindSyncToAsyncApi; import org.jclouds.blobstore.AsyncBlobStore; import org.jclouds.blobstore.BlobRequestSigner; @@ -50,7 +50,7 @@ public class FilesystemBlobStoreContextModule extends AbstractModule { protected void configure() { bind(AsyncBlobStore.class).to(LocalAsyncBlobStore.class).asEagerSingleton(); // forward all requests from TransientBlobStore to TransientAsyncBlobStore. needs above binding as cannot proxy a class - bindMappedApi(binder(), LocalBlobStore.class, AsyncBlobStore.class); + bindSyncToAsyncApi(binder(), LocalBlobStore.class, AsyncBlobStore.class); bind(BlobStore.class).to(LocalBlobStore.class); install(new BlobStoreObjectModule()); diff --git a/blobstore/src/main/java/org/jclouds/blobstore/config/TransientBlobStoreContextModule.java b/blobstore/src/main/java/org/jclouds/blobstore/config/TransientBlobStoreContextModule.java index a7813b2cbc..004b00d4c5 100644 --- a/blobstore/src/main/java/org/jclouds/blobstore/config/TransientBlobStoreContextModule.java +++ b/blobstore/src/main/java/org/jclouds/blobstore/config/TransientBlobStoreContextModule.java @@ -18,7 +18,7 @@ */ package org.jclouds.blobstore.config; -import static org.jclouds.rest.config.BinderUtils.bindMappedApi; +import static org.jclouds.rest.config.BinderUtils.bindSyncToAsyncApi; import org.jclouds.blobstore.AsyncBlobStore; import org.jclouds.blobstore.BlobRequestSigner; @@ -41,7 +41,7 @@ public class TransientBlobStoreContextModule extends AbstractModule { protected void configure() { bind(AsyncBlobStore.class).to(LocalAsyncBlobStore.class).asEagerSingleton(); // forward all requests from TransientBlobStore to TransientAsyncBlobStore. needs above binding as cannot proxy a class - bindMappedApi(binder(), LocalBlobStore.class, AsyncBlobStore.class); + bindSyncToAsyncApi(binder(), LocalBlobStore.class, AsyncBlobStore.class); install(new BlobStoreObjectModule()); install(new BlobStoreMapModule()); bind(BlobStore.class).to(LocalBlobStore.class); diff --git a/core/src/main/java/org/jclouds/rest/config/BinderUtils.java b/core/src/main/java/org/jclouds/rest/config/BinderUtils.java index 0c4bafb29c..7ef6f6d63a 100644 --- a/core/src/main/java/org/jclouds/rest/config/BinderUtils.java +++ b/core/src/main/java/org/jclouds/rest/config/BinderUtils.java @@ -129,7 +129,7 @@ public class BinderUtils { * longer supported. */ @Deprecated - public static void bindMappedApi(Binder binder, Class sync, Class async) { + public static void bindSyncToAsyncApi(Binder binder, Class sync, Class async) { bindClass(binder, sync); bindClass(binder, async); bindCallGetOnFutures(binder, sync, async);