public abstract class BaseComputeServiceContextModule
extends com.google.inject.AbstractModule
Constructor and Description |
---|
BaseComputeServiceContextModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
bindCredentialsOverriderFunction() |
protected void |
configure() |
protected com.google.common.base.Function<ComputeMetadata,String> |
indexer() |
protected Map<OsFamily,LoginCredentials> |
osFamilyToCredentials(com.google.inject.Injector injector) |
protected com.google.common.base.Optional<ImageExtension> |
provideImageExtension(com.google.inject.Injector i) |
protected com.google.common.base.Supplier<Map<String,? extends Image>> |
provideImageMap(com.google.common.base.Supplier<Set<? extends Image>> images) |
Map<OsFamily,Map<String,String>> |
provideOsVersionMap(ComputeServiceConstants.ReferenceData data,
Json json) |
protected com.google.common.base.Supplier<Map<String,? extends Hardware>> |
provideSizeMap(com.google.common.base.Supplier<Set<? extends Hardware>> sizes) |
protected TemplateBuilder |
provideTemplateOptionallyFromProperties(com.google.inject.Injector injector,
TemplateBuilder template,
String provider,
ValueOfConfigurationKeyOrNull config)
The default template if none is provided.
|
protected TemplateOptions |
provideTemplateOptions(com.google.inject.Injector injector,
TemplateOptions options)
The default options if none are provided.
|
protected boolean |
shouldEagerlyParseImages(com.google.inject.Injector injector) |
protected com.google.common.base.Supplier<Set<? extends Image>> |
supplyImageCache(AtomicReference<AuthorizationException> authException,
long seconds,
com.google.common.base.Supplier<Set<? extends Image>> imageSupplier) |
protected com.google.common.base.Supplier<Set<? extends Image>> |
supplyImageCache(AtomicReference<AuthorizationException> authException,
long seconds,
com.google.common.base.Supplier<Set<? extends Image>> imageSupplier,
com.google.inject.Injector injector) |
protected com.google.common.base.Supplier<Set<? extends Image>> |
supplyNonParsingImageCache(AtomicReference<AuthorizationException> authException,
long seconds,
com.google.common.base.Supplier<Set<? extends Image>> imageSupplier,
com.google.inject.Injector injector)
For overriding; default impl is same as
supplyImageCache(seconds, imageSupplier) |
protected com.google.common.base.Supplier<Set<? extends Hardware>> |
supplySizeCache(AtomicReference<AuthorizationException> authException,
long seconds,
com.google.common.base.Supplier<Set<? extends Hardware>> hardwareSupplier) |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected void configure()
configure
in class com.google.inject.AbstractModule
protected void bindCredentialsOverriderFunction()
@Provides @Singleton public Map<OsFamily,Map<String,String>> provideOsVersionMap(ComputeServiceConstants.ReferenceData data, Json json)
@Provides @Named(value="DEFAULT") protected TemplateBuilder provideTemplateOptionallyFromProperties(com.google.inject.Injector injector, TemplateBuilder template, String provider, ValueOfConfigurationKeyOrNull config)
@Provides @Singleton protected Map<OsFamily,LoginCredentials> osFamilyToCredentials(com.google.inject.Injector injector)
@Provides @Named(value="DEFAULT") protected TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
@Provides @Singleton protected com.google.common.base.Supplier<Map<String,? extends Image>> provideImageMap(com.google.common.base.Supplier<Set<? extends Image>> images)
@Provides @Singleton protected com.google.common.base.Supplier<Set<? extends Image>> supplyImageCache(AtomicReference<AuthorizationException> authException, @Named(value="jclouds.session-interval") long seconds, com.google.common.base.Supplier<Set<? extends Image>> imageSupplier, com.google.inject.Injector injector)
protected boolean shouldEagerlyParseImages(com.google.inject.Injector injector)
protected com.google.common.base.Supplier<Set<? extends Image>> supplyImageCache(AtomicReference<AuthorizationException> authException, @Named(value="jclouds.session-interval") long seconds, com.google.common.base.Supplier<Set<? extends Image>> imageSupplier)
protected com.google.common.base.Supplier<Set<? extends Image>> supplyNonParsingImageCache(AtomicReference<AuthorizationException> authException, @Named(value="jclouds.session-interval") long seconds, com.google.common.base.Supplier<Set<? extends Image>> imageSupplier, com.google.inject.Injector injector)
supplyImageCache(seconds, imageSupplier)
@Provides @Singleton protected com.google.common.base.Supplier<Map<String,? extends Hardware>> provideSizeMap(com.google.common.base.Supplier<Set<? extends Hardware>> sizes)
@Provides @Singleton protected com.google.common.base.Supplier<Set<? extends Hardware>> supplySizeCache(AtomicReference<AuthorizationException> authException, @Named(value="jclouds.session-interval") long seconds, com.google.common.base.Supplier<Set<? extends Hardware>> hardwareSupplier)
@Provides @Singleton protected com.google.common.base.Function<ComputeMetadata,String> indexer()
@Provides @Singleton protected com.google.common.base.Optional<ImageExtension> provideImageExtension(com.google.inject.Injector i)
Copyright © 2009-2013 jclouds. All Rights Reserved.