org.jclouds.ec2
Class EC2ContextBuilder

java.lang.Object
  extended by org.jclouds.rest.RestContextBuilder<S,A>
      extended by org.jclouds.compute.ComputeServiceContextBuilder<EC2Client,EC2AsyncClient>
          extended by org.jclouds.ec2.EC2ContextBuilder
Direct Known Subclasses:
AWSEC2ContextBuilder, EucalyptusPartnerCloudContextBuilder

public class EC2ContextBuilder
extends ComputeServiceContextBuilder<EC2Client,EC2AsyncClient>

Creates EC2ComputeServiceContext or Injector instances based on the most commonly requested arguments.

Note that Threadsafe objects will be bound as singletons to the Injector or Context provided.

If no Modules are specified, the default logging and http transports will be installed.

Author:
Adrian Cole
See Also:
EC2ComputeServiceContext

Field Summary
 
Fields inherited from class org.jclouds.rest.RestContextBuilder
asyncClientType, modules, properties, syncClientType
 
Constructor Summary
EC2ContextBuilder(Properties props)
           
 
Method Summary
protected  void addClientModule(List<com.google.inject.Module> modules)
           
protected  void addContextModule(List<com.google.inject.Module> modules)
           
protected  void addImageResolutionModule()
           
 EC2ContextBuilder withModules(Iterable<com.google.inject.Module> modules)
          
 
Methods inherited from class org.jclouds.compute.ComputeServiceContextBuilder
addImageResolutionModuleIfNotPresent, buildComputeServiceContext, buildInjector
 
Methods inherited from class org.jclouds.rest.RestContextBuilder
addClientModuleIfNotPresent, addContextModuleIfNotPresent, addCredentialStoreIfNotPresent, addExecutorServiceIfNotPresent, addHttpModuleIfNeededAndNotPresent, addLoggingModuleIfNotPresent, buildContext, getProperties, ifHttpConfigureRestOtherwiseGuiceClientFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EC2ContextBuilder

public EC2ContextBuilder(Properties props)
Method Detail

withModules

public EC2ContextBuilder withModules(Iterable<com.google.inject.Module> modules)
Description copied from class: ComputeServiceContextBuilder

Overrides:
withModules in class ComputeServiceContextBuilder<EC2Client,EC2AsyncClient>

addContextModule

protected void addContextModule(List<com.google.inject.Module> modules)
Overrides:
addContextModule in class RestContextBuilder<EC2Client,EC2AsyncClient>

addClientModule

protected void addClientModule(List<com.google.inject.Module> modules)
Overrides:
addClientModule in class RestContextBuilder<EC2Client,EC2AsyncClient>

addImageResolutionModule

protected void addImageResolutionModule()
Overrides:
addImageResolutionModule in class ComputeServiceContextBuilder<EC2Client,EC2AsyncClient>


Copyright © 2009-2011 jclouds. All Rights Reserved.