Tabnine Logo
BlobStoreMapModule
Code IndexAdd Tabnine to your IDE (free)

How to use
BlobStoreMapModule
in
org.jclouds.blobstore.config

Best Java code snippets using org.jclouds.blobstore.config.BlobStoreMapModule (Showing top 16 results out of 315)

origin: jclouds/legacy-jclouds

  @Override
  protected void configure() {
   install(new BlobStoreMapModule());
   bind(ConsistencyModel.class).toInstance(ConsistencyModel.STRICT);
   bind(AsyncBlobStore.class).to(SwiftAsyncBlobStore.class).in(Scopes.SINGLETON);
   bind(BlobStore.class).to(SwiftBlobStore.class).in(Scopes.SINGLETON);
  }
}
origin: jclouds/legacy-jclouds

/**
* 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() {
 bind(BlobMap.Factory.class).to(BlobMapFactory.class).in(Scopes.SINGLETON);
 bind(InputStreamMap.Factory.class).to(InputStreamMapFactory.class).in(Scopes.SINGLETON);
}
origin: org.jclouds.api/swift

  @Override
  protected void configure() {
   install(new BlobStoreMapModule());
   bind(ConsistencyModel.class).toInstance(ConsistencyModel.STRICT);
   bind(AsyncBlobStore.class).to(SwiftAsyncBlobStore.class).in(Scopes.SINGLETON);
   bind(BlobStore.class).to(SwiftBlobStore.class).in(Scopes.SINGLETON);
  }
}
origin: org.jclouds/jclouds-blobstore

/**
* 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() {
 bind(BlobMap.Factory.class).to(BlobMapFactory.class).in(Scopes.SINGLETON);
 bind(InputStreamMap.Factory.class).to(InputStreamMapFactory.class).in(Scopes.SINGLETON);
}
origin: jclouds/legacy-jclouds

@Override
protected void configure() {
 install(new BlobStoreMapModule());
 bind(ConsistencyModel.class).toInstance(ConsistencyModel.STRICT);
 bind(AsyncBlobStore.class).to(AzureAsyncBlobStore.class).in(Scopes.SINGLETON);
 bind(BlobStore.class).to(AzureBlobStore.class).in(Scopes.SINGLETON);
 bind(ContainsValueInListStrategy.class).to(FindMD5InBlobProperties.class);
 bind(BlobRequestSigner.class).to(AzureBlobRequestSigner.class);
}
origin: org.jclouds/jclouds-azure

@Override
protected void configure() {
 install(new BlobStoreMapModule());
 bind(ConsistencyModel.class).toInstance(ConsistencyModel.STRICT);
 bind(AsyncBlobStore.class).to(AzureAsyncBlobStore.class).in(Scopes.SINGLETON);
 bind(BlobStore.class).to(AzureBlobStore.class).in(Scopes.SINGLETON);
 bind(BlobStoreContext.class).to(new TypeLiteral<BlobStoreContextImpl<AzureBlobClient, AzureBlobAsyncClient>>() {
 }).in(Scopes.SINGLETON);
 bind(ContainsValueInListStrategy.class).to(FindMD5InBlobProperties.class);
 bind(BlobRequestSigner.class).to(AzureBlobRequestSigner.class);
}
origin: jclouds/legacy-jclouds

@Override
protected void configure() {
 install(new BlobStoreMapModule());
 bind(ConsistencyModel.class).toInstance(ConsistencyModel.EVENTUAL);
 bind(AsyncBlobStore.class).to(AtmosAsyncBlobStore.class).in(Scopes.SINGLETON);
 bind(BlobStore.class).to(AtmosBlobStore.class).in(Scopes.SINGLETON);
 bind(ContainsValueInListStrategy.class).to(FindMD5InUserMetadata.class);
 bind(BlobRequestSigner.class).to(AtmosBlobRequestSigner.class);
}
origin: org.jclouds.api/atmos

@Override
protected void configure() {
 install(new BlobStoreMapModule());
 bind(ConsistencyModel.class).toInstance(ConsistencyModel.EVENTUAL);
 bind(AsyncBlobStore.class).to(AtmosAsyncBlobStore.class).in(Scopes.SINGLETON);
 bind(BlobStore.class).to(AtmosBlobStore.class).in(Scopes.SINGLETON);
 bind(ContainsValueInListStrategy.class).to(FindMD5InUserMetadata.class);
 bind(BlobRequestSigner.class).to(AtmosBlobRequestSigner.class);
}
origin: jclouds/legacy-jclouds

@Override
protected void configure() {
 install(new BlobStoreMapModule());
 bind(ConsistencyModel.class).toInstance(ConsistencyModel.EVENTUAL);
 bind(AsyncBlobStore.class).to(S3AsyncBlobStore.class).in(SINGLETON);
 bind(BlobStore.class).to(S3BlobStore.class).in(SINGLETON);
 bind(new TypeLiteral<Function<String, Location>>() {
 }).to(LocationFromBucketName.class);
 bindRequestSigner();
}
origin: org.jclouds.provider/azureblob

@Override
protected void configure() {
 install(new BlobStoreMapModule());
 bind(ConsistencyModel.class).toInstance(ConsistencyModel.STRICT);
 bind(AsyncBlobStore.class).to(AzureAsyncBlobStore.class).in(Scopes.SINGLETON);
 bind(BlobStore.class).to(AzureBlobStore.class).in(Scopes.SINGLETON);
 bind(ContainsValueInListStrategy.class).to(FindMD5InBlobProperties.class);
 bind(BlobRequestSigner.class).to(AzureBlobRequestSigner.class);
}
origin: jclouds/legacy-jclouds

  @Override
  protected void configure() {
   install(new BlobStoreMapModule());
   bind(ConsistencyModel.class).toInstance(ConsistencyModel.STRICT);
   bind(AsyncBlobStore.class).to(HPCloudObjectStorageAsyncBlobStore.class);
   bind(BlobStore.class).to(HPCloudObjectStorageBlobStore.class);
   bind(ObjectToBlobMetadata.class).to(HPCloudObjectStorageObjectToBlobMetadata.class);
  }
}
origin: org.jclouds/jclouds-aws

@Override
protected void configure() {
 install(new BlobStoreMapModule());
 bind(new TypeLiteral<Supplier<Location>>() {
 }).to(new TypeLiteral<DefaultLocationSupplier>() {
 });
 bind(ConsistencyModel.class).toInstance(ConsistencyModel.EVENTUAL);
 bind(AsyncBlobStore.class).to(S3AsyncBlobStore.class).in(Scopes.SINGLETON);
 bind(BlobStore.class).to(S3BlobStore.class).in(Scopes.SINGLETON);
 bind(BlobStoreContext.class).to(new TypeLiteral<BlobStoreContextImpl<S3Client, S3AsyncClient>>() {
 }).in(Scopes.SINGLETON);
 bind(BlobRequestSigner.class).to(S3BlobRequestSigner.class);
}
origin: org.jclouds.api/s3

@Override
protected void configure() {
 install(new BlobStoreMapModule());
 bind(ConsistencyModel.class).toInstance(ConsistencyModel.EVENTUAL);
 bind(AsyncBlobStore.class).to(S3AsyncBlobStore.class).in(SINGLETON);
 bind(BlobStore.class).to(S3BlobStore.class).in(SINGLETON);
 bind(new TypeLiteral<Function<String, Location>>() {
 }).to(LocationFromBucketName.class);
 bindRequestSigner();
}
origin: jclouds/legacy-jclouds

@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);
}
origin: org.jclouds/jclouds-blobstore

@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);
}
origin: jclouds/legacy-jclouds

@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);
 install(new BlobStoreObjectModule());
 install(new BlobStoreMapModule());
 bind(ConsistencyModel.class).toInstance(ConsistencyModel.STRICT);
 bind(LocalStorageStrategy.class).to(FilesystemStorageStrategyImpl.class);
 bind(BlobUtils.class).to(FileSystemBlobUtilsImpl.class);
 bind(FilesystemBlobKeyValidator.class).to(FilesystemBlobKeyValidatorImpl.class);
 bind(FilesystemContainerNameValidator.class).to(FilesystemContainerNameValidatorImpl.class);
 bind(BlobRequestSigner.class).to(LocalBlobRequestSigner.class);
}
org.jclouds.blobstore.configBlobStoreMapModule

Javadoc

Configures the domain object mappings needed for all Blob implementations

Most used methods

  • <init>
  • bind

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now