org.jclouds.ec2.compute.config
Class EC2ComputeServiceContextModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.compute.config.BaseComputeServiceContextModule
          extended by org.jclouds.ec2.compute.config.EC2ComputeServiceContextModule
All Implemented Interfaces:
com.google.inject.Module
Direct Known Subclasses:
EucalyptusPartnerCloudComputeServiceContextModule

public class EC2ComputeServiceContextModule
extends BaseComputeServiceContextModule

Configures the ComputeServiceContext; requires EC2ComputeService bound.

Author:
Adrian Cole

Field Summary
 
Fields inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
authException
 
Constructor Summary
EC2ComputeServiceContextModule()
           
 
Method Summary
protected  void configure()
           
protected  void installDependencies()
           
protected  com.google.common.base.Supplier<com.google.common.cache.Cache<RegionAndName,? extends Image>> provideRegionAndNameToImageSupplierCache(long seconds, RegionAndNameToImageSupplier supplier)
           
 
Methods inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
indexer, provideImageMap, provideNamingConvention, provideOsVersionMap, provideSizeMap, provideTemplate, provideTemplateOptions, supplyImageCache, supplySizeCache
 
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
 

Constructor Detail

EC2ComputeServiceContextModule

public EC2ComputeServiceContextModule()
Method Detail

configure

protected void configure()
Overrides:
configure in class BaseComputeServiceContextModule

installDependencies

protected void installDependencies()

provideRegionAndNameToImageSupplierCache

@Provides
@Singleton
protected com.google.common.base.Supplier<com.google.common.cache.Cache<RegionAndName,? extends Image>> provideRegionAndNameToImageSupplierCache(@Named(value="jclouds.session-interval")
                                                                                                                                                                    long seconds,
                                                                                                                                                                    RegionAndNameToImageSupplier supplier)


Copyright © 2009-2011 jclouds. All Rights Reserved.