public class EC2ContextBuilder extends ComputeServiceContextBuilder<EC2Client,EC2AsyncClient>
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.EC2ComputeServiceContextasyncClientType, modules, properties, syncClientType| Constructor and Description |
|---|
EC2ContextBuilder(Properties props) |
| Modifier and Type | Method and Description |
|---|---|
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) |
addImageResolutionModuleIfNotPresent, buildComputeServiceContext, buildInjectoraddClientModuleIfNotPresent, addContextModuleIfNotPresent, addCredentialStoreIfNotPresent, addExecutorServiceIfNotPresent, addHttpModuleIfNeededAndNotPresent, addLoggingModuleIfNotPresent, buildContext, getProperties, ifHttpConfigureRestOtherwiseGuiceClientFactorypublic EC2ContextBuilder(Properties props)
public EC2ContextBuilder withModules(Iterable<com.google.inject.Module> modules)
ComputeServiceContextBuilderwithModules in class ComputeServiceContextBuilder<EC2Client,EC2AsyncClient>protected void addContextModule(List<com.google.inject.Module> modules)
addContextModule in class RestContextBuilder<EC2Client,EC2AsyncClient>protected void addClientModule(List<com.google.inject.Module> modules)
addClientModule in class RestContextBuilder<EC2Client,EC2AsyncClient>protected void addImageResolutionModule()
addImageResolutionModule in class ComputeServiceContextBuilder<EC2Client,EC2AsyncClient>Copyright © 2009-2012 jclouds. All Rights Reserved.