org.jclouds.aws.s3.config
Class AWSS3RestClientModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.rest.config.RestClientModule<S,A>
          extended by org.jclouds.aws.config.AWSRestClientModule<S,A>
              extended by org.jclouds.s3.config.S3RestClientModule<AWSS3Client,AWSS3AsyncClient>
                  extended by org.jclouds.aws.s3.config.AWSS3RestClientModule
All Implemented Interfaces:
com.google.inject.Module

public class AWSS3RestClientModule
extends S3RestClientModule<AWSS3Client,AWSS3AsyncClient>

Configures the S3 connection.

Author:
Adrian Cole

Field Summary
 
Fields inherited from class org.jclouds.rest.config.RestClientModule
asyncClientType, authException, delegates, syncClientType, URI_SUPPLIER_TYPE
 
Constructor Summary
AWSS3RestClientModule()
           
 
Method Summary
protected  void configure()
           
protected  com.google.common.base.Supplier<String> defaultRegionForBucket(com.google.common.base.Supplier<String> defaultRegion)
           
protected  com.google.common.base.Supplier<URI> provideBucketURI(String endpoint)
           
 
Methods inherited from class org.jclouds.s3.config.S3RestClientModule
bindErrorHandlers, bindRetryHandlers, bucketToRegion, create, provideRequestSigner, provideTimeStamp, provideTimeStampCache
 
Methods inherited from class org.jclouds.rest.config.RestClientModule
bindAsyncClient, bindClient, installLocations
 
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWSS3RestClientModule

public AWSS3RestClientModule()
Method Detail

defaultRegionForBucket

protected com.google.common.base.Supplier<String> defaultRegionForBucket(com.google.common.base.Supplier<String> defaultRegion)
Overrides:
defaultRegionForBucket in class S3RestClientModule<AWSS3Client,AWSS3AsyncClient>

configure

protected void configure()
Overrides:
configure in class S3RestClientModule<AWSS3Client,AWSS3AsyncClient>

provideBucketURI

@Provides
@Singleton
protected com.google.common.base.Supplier<URI> provideBucketURI(@Named(value="jclouds.region.us-standard.endpoint")
                                                                                   String endpoint)


Copyright © 2009-2012 jclouds. All Rights Reserved.