org.jclouds.ec2.config
Class EC2RestClientModule<S extends EC2Client,A extends EC2AsyncClient>

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.aws.config.FormSigningRestClientModule<S,A>
                  extended by org.jclouds.aws.config.WithZonesFormSigningRestClientModule<S,A>
                      extended by org.jclouds.ec2.config.EC2RestClientModule<S,A>
All Implemented Interfaces:
com.google.inject.Module
Direct Known Subclasses:
AWSEC2RestClientModule

public class EC2RestClientModule<S extends EC2Client,A extends EC2AsyncClient>
extends WithZonesFormSigningRestClientModule<S,A>

Configures the EC2 connection.

Author:
Adrian Cole (EDIT: Nick Terry nterry@familysearch.org)

Nested Class Summary
static class EC2RestClientModule.RegionIdsToURI
           
static class EC2RestClientModule.RegionIdToZoneId
           
 
Field Summary
static Map<Class<?>,Class<?>> DELEGATE_MAP
           
 
Fields inherited from class org.jclouds.rest.config.RestClientModule
asyncClientType, delegates, syncClientType
 
Constructor Summary
EC2RestClientModule(Class<S> sync, Class<A> async, Map<Class<?>,Class<?>> delegateMap)
           
 
Method Summary
protected  void bindRegionsToProvider()
           
protected  void bindZonesToProvider()
           
static EC2RestClientModule<EC2Client,EC2AsyncClient> create()
           
 
Methods inherited from class org.jclouds.aws.config.WithZonesFormSigningRestClientModule
bindZonesToProvider, configure, provideZones
 
Methods inherited from class org.jclouds.aws.config.FormSigningRestClientModule
provideTimeStamp
 
Methods inherited from class org.jclouds.aws.config.AWSRestClientModule
bindErrorHandlers, bindRegionsToProvider, bindRetryHandlers, getDefaultRegion, provideRegions
 
Methods inherited from class org.jclouds.rest.config.RestClientModule
bindAsyncClient, bindClient
 
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
 

Field Detail

DELEGATE_MAP

public static final Map<Class<?>,Class<?>> DELEGATE_MAP
Constructor Detail

EC2RestClientModule

public EC2RestClientModule(Class<S> sync,
                           Class<A> async,
                           Map<Class<?>,Class<?>> delegateMap)
Method Detail

create

public static EC2RestClientModule<EC2Client,EC2AsyncClient> create()

bindRegionsToProvider

protected void bindRegionsToProvider()
Overrides:
bindRegionsToProvider in class AWSRestClientModule<S extends EC2Client,A extends EC2AsyncClient>

bindZonesToProvider

protected void bindZonesToProvider()
Overrides:
bindZonesToProvider in class WithZonesFormSigningRestClientModule<S extends EC2Client,A extends EC2AsyncClient>


Copyright © 2009-2011 jclouds. All Rights Reserved.