> * @author Alfredo "Rainbowbreeze" Morresi
> */
> public class FilesystemBlobStoreContextModule extends AbstractModule {
>
> @Override
> 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
> - bindSyncToAsyncApi(binder(), LocalBlobStore.class,
> AsyncBlobStore.class);
> - bind(BlobStore.class).to(LocalBlobStore.class);
> + bind(BlobStore.class).to(LocalBlobStore.class).in(Scopes.SINGLETON);
I think it is required to keep this Singleton. Some unit tests fail otherwise.
If it is not singleton the injected blobstore objects turn out to be different
from those used in the BeforeSuite/BeforeTest.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/220/files#r8087003