Package org.jclouds.providers.config
Class BindProviderMetadataContextAndCredentials
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.jclouds.providers.config.BindProviderMetadataContextAndCredentials
-
- All Implemented Interfaces:
com.google.inject.Module
public class BindProviderMetadataContextAndCredentials extends com.google.inject.AbstractModule
Binds data insideProviderMetadata
to types with scopes qualified with annotations in theorg.jclouds.location
andorg.jclouds.rest.annotations
packages. It also binds the properties specified inProviderMetadata.getDefaultProperties()
ProviderMetadata
explicitly. Finally, it bind the context type so that it can be looked up later.
-
-
Constructor Summary
Constructors Constructor Description BindProviderMetadataContextAndCredentials(ProviderMetadata providerMetadata, com.google.common.base.Supplier<Credentials> creds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Context
backend(com.google.inject.Injector i, com.google.common.reflect.TypeToken<? extends Context> backendType)
protected void
configure()
-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Constructor Detail
-
BindProviderMetadataContextAndCredentials
public BindProviderMetadataContextAndCredentials(ProviderMetadata providerMetadata, com.google.common.base.Supplier<Credentials> creds)
-
-