Class BaseComputeServiceContextModule

    • Constructor Detail

      • BaseComputeServiceContextModule

        public BaseComputeServiceContextModule()
    • Method Detail

      • configure

        protected void configure()
        Overrides:
        configure in class com.google.inject.AbstractModule
      • bindCredentialsOverriderFunction

        protected void bindCredentialsOverriderFunction()
      • provideOsFamilyToCredentials

        @Provides
        @Singleton
        protected final Map<OsFamily,​LoginCredentials> provideOsFamilyToCredentials​(com.google.inject.Injector injector)
      • guiceProvideTemplateOptions

        @Provides
        @Named("DEFAULT")
        protected final TemplateOptions guiceProvideTemplateOptions​(com.google.inject.Injector injector,
                                                                    TemplateOptions options)
        The default options if none are provided.
      • provideImageMap

        @Provides
        @Singleton
        protected final com.google.common.base.Supplier<Map<String,​? extends Image>> provideImageMap​(com.google.common.base.Supplier<Set<? extends Image>> images)
      • supplyImageCache

        @Provides
        @Singleton
        protected final com.google.common.base.Supplier<Set<? extends Image>> supplyImageCache​(AtomicReference<AuthorizationException> authException,
                                                                                               @Named("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)
      • shouldEagerlyParseImages

        protected boolean shouldEagerlyParseImages​(com.google.inject.Injector injector)
      • 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)
        For overriding; default impl just returns the image supplier.
      • provideSizeMap

        @Provides
        @Singleton
        protected final com.google.common.base.Supplier<Map<String,​? extends Hardware>> provideSizeMap​(com.google.common.base.Supplier<Set<? extends Hardware>> sizes)
      • supplySizeCache

        @Provides
        @Singleton
        protected final com.google.common.base.Supplier<Set<? extends Hardware>> supplySizeCache​(AtomicReference<AuthorizationException> authException,
                                                                                                 @Named("jclouds.session-interval")
                                                                                                 long seconds,
                                                                                                 com.google.common.base.Supplier<Set<? extends Hardware>> hardwareSupplier)
      • indexer

        @Provides
        @Singleton
        protected final com.google.common.base.Function<ComputeMetadata,​String> indexer()
      • guiceProvideImageExtension

        @Provides
        @Singleton
        public final com.google.common.base.Optional<ImageExtension> guiceProvideImageExtension​(com.google.inject.Injector i)
      • guiceProvideSecurityGroupExtension

        @Provides
        @Singleton
        protected final com.google.common.base.Optional<SecurityGroupExtension> guiceProvideSecurityGroupExtension​(com.google.inject.Injector i)
      • provideImageExtension

        protected com.google.common.base.Optional<ImageExtension> provideImageExtension​(com.google.inject.Injector i)
      • provideSecurityGroupExtension

        protected com.google.common.base.Optional<SecurityGroupExtension> provideSecurityGroupExtension​(com.google.inject.Injector i)