org.jclouds.ec2
Class EC2ContextBuilder
java.lang.Object
org.jclouds.rest.RestContextBuilder<S,A>
org.jclouds.compute.ComputeServiceContextBuilder<EC2Client,EC2AsyncClient>
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 Module
s are specified, the default logging
and
http transports
will be installed.
- Author:
- Adrian Cole
- See Also:
EC2ComputeServiceContext
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EC2ContextBuilder
public EC2ContextBuilder(Properties props)
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.