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 Module
s are specified, the default logging
and
http transports
will be installed.EC2ComputeServiceContext
asyncClientType, 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, buildInjector
addClientModuleIfNotPresent, addContextModuleIfNotPresent, addCredentialStoreIfNotPresent, addExecutorServiceIfNotPresent, addHttpModuleIfNeededAndNotPresent, addLoggingModuleIfNotPresent, buildContext, getProperties, ifHttpConfigureRestOtherwiseGuiceClientFactory
public EC2ContextBuilder(Properties props)
public EC2ContextBuilder withModules(Iterable<com.google.inject.Module> modules)
ComputeServiceContextBuilder
withModules
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.