Class BindProviderMetadataContextAndCredentials

  • All Implemented Interfaces:
    com.google.inject.Module

    public class BindProviderMetadataContextAndCredentials
    extends com.google.inject.AbstractModule
    Binds data inside ProviderMetadata to types with scopes qualified with annotations in the org.jclouds.location and org.jclouds.rest.annotations packages. It also binds the properties specified in ProviderMetadata.getDefaultProperties() ProviderMetadata explicitly. Finally, it bind the context type so that it can be looked up later.
    • Constructor Detail

      • BindProviderMetadataContextAndCredentials

        public BindProviderMetadataContextAndCredentials​(ProviderMetadata providerMetadata,
                                                         com.google.common.base.Supplier<Credentials> creds)
    • Method Detail

      • configure

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

        @Provides
        @Singleton
        protected Context backend​(com.google.inject.Injector i,
                                  com.google.common.reflect.TypeToken<? extends Context> backendType)