Package org.jclouds.ec2.compute.config
Class EC2ComputeServiceContextModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.jclouds.compute.config.BaseComputeServiceContextModule
-
- org.jclouds.ec2.compute.config.EC2ComputeServiceContextModule
-
- All Implemented Interfaces:
com.google.inject.Module
- Direct Known Subclasses:
NovaEC2ComputeServiceContextModule
public class EC2ComputeServiceContextModule extends BaseComputeServiceContextModule
Configures theComputeServiceContext
; requiresEC2ComputeService
bound.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
BaseComputeServiceContextModule.RunScriptOnNodeFactoryImpl
-
-
Constructor Summary
Constructors Constructor Description EC2ComputeServiceContextModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure()
protected com.google.common.base.Supplier<com.google.common.cache.CacheLoader<RegionAndName,Image>>
guiceProvideRegionAndNameToImageSupplierCacheLoader(RegionAndIdToImage delegate)
protected void
installDependencies()
protected com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>>
provideRegionAndNameToImageSupplierCache(RegionAndNameToImageSupplier supplier)
protected com.google.common.base.Supplier<com.google.common.cache.CacheLoader<RegionAndName,Image>>
provideRegionAndNameToImageSupplierCacheLoader(RegionAndIdToImage delegate)
protected boolean
shouldEagerlyParseImages(com.google.inject.Injector injector)
protected com.google.common.base.Supplier<Set<? extends Image>>
supplyNonParsingImages(com.google.common.base.Supplier<Set<? extends Image>> imageSupplier, com.google.inject.Injector injector)
For overriding; default impl just returns the image supplier.-
Methods inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
bindCredentialsOverriderFunction, guiceProvideImageExtension, guiceProvideSecurityGroupExtension, guiceProvideTemplateOptions, indexer, osFamilyToCredentials, provideImageExtension, provideImageMap, provideOsFamilyToCredentials, provideOsVersionMap, provideSecurityGroupExtension, provideSizeMap, provideTemplateOptionallyFromProperties, provideTemplateOptions, supplyImageCache, supplySizeCache
-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Method Detail
-
configure
protected void configure()
- Overrides:
configure
in classBaseComputeServiceContextModule
-
installDependencies
protected void installDependencies()
-
shouldEagerlyParseImages
protected boolean shouldEagerlyParseImages(com.google.inject.Injector injector)
- Overrides:
shouldEagerlyParseImages
in classBaseComputeServiceContextModule
-
supplyNonParsingImages
protected com.google.common.base.Supplier<Set<? extends Image>> supplyNonParsingImages(com.google.common.base.Supplier<Set<? extends Image>> imageSupplier, com.google.inject.Injector injector)
Description copied from class:BaseComputeServiceContextModule
For overriding; default impl just returns the image supplier.- Overrides:
supplyNonParsingImages
in classBaseComputeServiceContextModule
-
provideRegionAndNameToImageSupplierCache
@Provides @Singleton protected final com.google.common.base.Supplier<com.google.common.cache.LoadingCache<RegionAndName,? extends Image>> provideRegionAndNameToImageSupplierCache(RegionAndNameToImageSupplier supplier)
-
guiceProvideRegionAndNameToImageSupplierCacheLoader
@Provides @Singleton protected final com.google.common.base.Supplier<com.google.common.cache.CacheLoader<RegionAndName,Image>> guiceProvideRegionAndNameToImageSupplierCacheLoader(RegionAndIdToImage delegate)
-
provideRegionAndNameToImageSupplierCacheLoader
protected com.google.common.base.Supplier<com.google.common.cache.CacheLoader<RegionAndName,Image>> provideRegionAndNameToImageSupplierCacheLoader(RegionAndIdToImage delegate)
-
-