public abstract class BaseComputeServiceContextModule
extends com.google.inject.AbstractModule
Constructor and Description |
---|
BaseComputeServiceContextModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
protected com.google.common.base.Function<ComputeMetadata,String> |
indexer() |
protected com.google.common.base.Supplier<Map<String,? extends Image>> |
provideImageMap(com.google.common.base.Supplier<Set<? extends Image>> images) |
protected String |
provideNamingConvention()
supplies how the tag is encoded into the name.
|
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 |
provideTemplate(com.google.inject.Injector injector,
TemplateBuilder template) |
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 |
shouldParseImagesOnDemand(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
@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)
protected TemplateBuilder provideTemplate(com.google.inject.Injector injector, TemplateBuilder template)
@Provides @Named(value="DEFAULT") protected TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
@Provides @Named(value="NAMING_CONVENTION") @Singleton protected String provideNamingConvention()
@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 shouldParseImagesOnDemand(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()
Copyright © 2009-2012 jclouds. All Rights Reserved.