public abstract class BaseComputeServiceContextModule
extends com.google.inject.AbstractModule
Modifier and Type | Class and Description |
---|---|
static class |
BaseComputeServiceContextModule.RunScriptOnNodeFactoryImpl |
Constructor and Description |
---|
BaseComputeServiceContextModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
bindCredentialsOverriderFunction() |
protected void |
configure() |
com.google.common.base.Optional<ImageExtension> |
guiceProvideImageExtension(com.google.inject.Injector i) |
protected com.google.common.base.Optional<SecurityGroupExtension> |
guiceProvideSecurityGroupExtension(com.google.inject.Injector i) |
protected TemplateOptions |
guiceProvideTemplateOptions(com.google.inject.Injector injector,
TemplateOptions options)
The default options if none are provided.
|
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) |
protected Map<OsFamily,LoginCredentials> |
provideOsFamilyToCredentials(com.google.inject.Injector injector) |
Map<OsFamily,Map<String,String>> |
provideOsVersionMap(ComputeServiceConstants.ReferenceData data,
Json json) |
protected com.google.common.base.Optional<SecurityGroupExtension> |
provideSecurityGroupExtension(com.google.inject.Injector i) |
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) |
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,
com.google.inject.Provider<GetImageStrategy> imageLoader,
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.
|
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 final Map<OsFamily,Map<String,String>> provideOsVersionMap(ComputeServiceConstants.ReferenceData data, Json json)
@Provides @Named(value="DEFAULT") protected final TemplateBuilder provideTemplateOptionallyFromProperties(com.google.inject.Injector injector, TemplateBuilder template, String provider, ValueOfConfigurationKeyOrNull config)
@Provides @Singleton protected final Map<OsFamily,LoginCredentials> provideOsFamilyToCredentials(com.google.inject.Injector injector)
protected Map<OsFamily,LoginCredentials> osFamilyToCredentials(com.google.inject.Injector injector)
@Provides @Named(value="DEFAULT") protected final TemplateOptions guiceProvideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
protected TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
@Provides @Singleton protected final com.google.common.base.Supplier<Map<String,? extends Image>> provideImageMap(com.google.common.base.Supplier<Set<? extends Image>> images)
@Provides @Singleton protected final 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.Provider<GetImageStrategy> imageLoader, com.google.inject.Injector injector)
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)
@Provides @Singleton protected final com.google.common.base.Supplier<Map<String,? extends Hardware>> provideSizeMap(com.google.common.base.Supplier<Set<? extends Hardware>> sizes)
@Provides @Singleton protected final 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 final com.google.common.base.Function<ComputeMetadata,String> indexer()
@Provides @Singleton public final com.google.common.base.Optional<ImageExtension> guiceProvideImageExtension(com.google.inject.Injector i)
@Provides @Singleton protected final com.google.common.base.Optional<SecurityGroupExtension> guiceProvideSecurityGroupExtension(com.google.inject.Injector i)
protected com.google.common.base.Optional<ImageExtension> provideImageExtension(com.google.inject.Injector i)
protected com.google.common.base.Optional<SecurityGroupExtension> provideSecurityGroupExtension(com.google.inject.Injector i)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.