/** * explicit factories are created here as it has been shown that Assisted Inject is extremely * inefficient. http://code.google.com/p/google-guice/issues/detail?id=435 */ @Override protected void configure() { // for converters install(new BlobStoreObjectModule()); }
/** * explicit factories are created here as it has been shown that Assisted Inject is extremely * inefficient. http://code.google.com/p/google-guice/issues/detail?id=435 */ @Override protected void configure() { // for converters install(new BlobStoreObjectModule()); }
/** * explicit factories are created here as it has been shown that Assisted Inject is extremely * inefficient. http://code.google.com/p/google-guice/issues/detail?id=435 */ @Override protected void configure() { // for converters install(new BlobStoreObjectModule()); }
/** * explicit factories are created here as it has been shown that Assisted Inject is extremely * inefficient. http://code.google.com/p/google-guice/issues/detail?id=435 */ @Override protected void configure() { // for converters install(new BlobStoreObjectModule()); bind(S3Object.Factory.class).to(S3ObjectFactory.class).asEagerSingleton(); }
/** * explicit factories are created here as it has been shown that Assisted Inject is extremely * inefficient. http://code.google.com/p/google-guice/issues/detail?id=435 */ @Override protected void configure() { // for converters install(new BlobStoreObjectModule()); bind(AzureBlob.Factory.class).to(AzureBlobFactory.class).in(Scopes.SINGLETON); }
/** * explicit factories are created here as it has been shown that Assisted Inject is extremely * inefficient. http://code.google.com/p/google-guice/issues/detail?id=435 */ @Override protected void configure() { // for converters to work. install(new BlobStoreObjectModule()); bind(SwiftObject.Factory.class).to(SwiftObjectFactory.class).in(Scopes.SINGLETON); }
/** * explicit factories are created here as it has been shown that Assisted Inject is extremely * inefficient. http://code.google.com/p/google-guice/issues/detail?id=435 */ @Override protected void configure() { // for converters install(new BlobStoreObjectModule()); bind(AzureBlob.Factory.class).to(AzureBlobFactory.class).in(Scopes.SINGLETON); }
/** * explicit factories are created here as it has been shown that Assisted Inject is extremely * inefficient. http://code.google.com/p/google-guice/issues/detail?id=435 */ @Override protected void configure() { // for converters install(new BlobStoreObjectModule()); bind(S3Object.Factory.class).to(S3ObjectFactory.class).asEagerSingleton(); }
/** * explicit factories are created here as it has been shown that Assisted Inject is extremely * inefficient. http://code.google.com/p/google-guice/issues/detail?id=435 */ @Override protected void configure() { // for converters install(new BlobStoreObjectModule()); bind(AzureBlob.Factory.class).to(AzureBlobFactory.class).in(Scopes.SINGLETON); }
/** * explicit factories are created here as it has been shown that Assisted Inject is extremely * inefficient. http://code.google.com/p/google-guice/issues/detail?id=435 */ @Override protected void configure() { // for converters to work. install(new BlobStoreObjectModule()); bind(SwiftObject.Factory.class).to(SwiftObjectFactory.class).in(Scopes.SINGLETON); }
/** * explicit factories are created here as it has been shown that Assisted Inject is extremely * inefficient. http://code.google.com/p/google-guice/issues/detail?id=435 */ @Override protected void configure() { // for converters to work. install(new BlobStoreObjectModule()); bind(SwiftObject.Factory.class).to(SwiftObjectFactory.class).in(Scopes.SINGLETON); }
/** * explicit factories are created here as it has been shown that Assisted Inject is extremely * inefficient. http://code.google.com/p/google-guice/issues/detail?id=435 */ @Override protected void configure() { // for converters install(new BlobStoreObjectModule()); bind(S3Object.Factory.class).to(S3ObjectFactory.class).asEagerSingleton(); }
/** * explicit factories are created here as it has been shown that Assisted Inject is extremely * inefficient. http://code.google.com/p/google-guice/issues/detail?id=435 */ @Override protected void configure() { // for converters install(new BlobStoreObjectModule()); bind(AzureBlob.Factory.class).to(AzureBlobFactory.class).in(Scopes.SINGLETON); }
@Override protected void configure() { install(new BlobStoreObjectModule()); bind(BlobStore.class).to(LocalBlobStore.class); bind(ConsistencyModel.class).toInstance(ConsistencyModel.STRICT); bind(LocalStorageStrategy.class).to(TransientStorageStrategy.class); bind(BlobRequestSigner.class).to(LocalBlobRequestSigner.class); }
@Override protected void configure() { install(new BlobStoreObjectModule()); bind(BlobStore.class).to(LocalBlobStore.class); bind(ConsistencyModel.class).toInstance(ConsistencyModel.STRICT); bind(LocalStorageStrategy.class).to(TransientStorageStrategy.class); bind(BlobRequestSigner.class).to(LocalBlobRequestSigner.class); }
@Override protected void configure() { install(new BlobStoreObjectModule()); bind(BlobStore.class).to(LocalBlobStore.class); bind(ConsistencyModel.class).toInstance(ConsistencyModel.STRICT); bind(LocalStorageStrategy.class).to(TransientStorageStrategy.class); bind(BlobRequestSigner.class).to(LocalBlobRequestSigner.class); }
@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); install(new BlobStoreObjectModule()); bind(BlobStore.class).to(LocalBlobStore.class); bind(ConsistencyModel.class).toInstance(ConsistencyModel.STRICT); bind(LocalStorageStrategy.class).to(TransientStorageStrategy.class); bind(BlobRequestSigner.class).to(LocalBlobRequestSigner.class); }
@BeforeTest void setUp() { blobProvider = Guice.createInjector(new BlobStoreObjectModule()).getInstance(Blob.Factory.class); }
@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); install(new BlobStoreObjectModule()); install(new BlobStoreMapModule()); bind(BlobStore.class).to(LocalBlobStore.class); bind(ConsistencyModel.class).toInstance(ConsistencyModel.STRICT); bind(LocalStorageStrategy.class).to(TransientStorageStrategy.class); bind(BlobRequestSigner.class).to(LocalBlobRequestSigner.class); }
@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); install(new BlobStoreObjectModule()); install(new BlobStoreMapModule()); bind(BlobStore.class).to(LocalBlobStore.class); bind(ConsistencyModel.class).toInstance(ConsistencyModel.STRICT); bind(LocalStorageStrategy.class).to(TransientStorageStrategy.class); bind(BlobRequestSigner.class).to(LocalBlobRequestSigner.class); }