org.jclouds.rest.config
Class BindPropertiesToAnnotations

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.nnsoft.guice.rocoto.configuration.ConfigurationModule
          extended by org.jclouds.rest.config.BindPropertiesToAnnotations
All Implemented Interfaces:
com.google.inject.Module

public class BindPropertiesToAnnotations
extends org.nnsoft.guice.rocoto.configuration.ConfigurationModule


Constructor Summary
BindPropertiesToAnnotations()
           
 
Method Summary
protected  String bindApi(String in)
           
protected  String bindApiVersion(String in)
           
protected  String bindBuildVersion(String in)
           
protected  void bindConfigurations()
           
protected  String bindCredential(ValueOfConfigurationKeyOrNull config)
           
protected  String bindIdentity(String in)
           
protected  Set<String> bindIsoCodes(String in)
           
protected  String bindProvider(String in)
           
protected  Credentials bindProviderCredentials(String identity, String credential)
           
protected  Map<String,Long> timeouts(com.google.common.base.Function<com.google.common.base.Predicate<String>,Map<String,String>> filterStringsBoundByName)
           
 
Methods inherited from class org.nnsoft.guice.rocoto.configuration.ConfigurationModule
bindEnvironmentVariables, bindProperties, bindProperties, bindProperties, bindProperties, bindProperties, bindProperties, bindProperties, bindProperties, bindProperties, bindProperty, bindSystemProperties, configure
 
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindPropertiesToAnnotations

public BindPropertiesToAnnotations()
Method Detail

timeouts

@Provides
@Singleton
@Named(value="TIMEOUTS")
protected Map<String,Long> timeouts(com.google.common.base.Function<com.google.common.base.Predicate<String>,Map<String,String>> filterStringsBoundByName)

bindProvider

@Provides
@Singleton
protected String bindProvider(@Named(value="jclouds.provider")
                                                 String in)

bindIsoCodes

@Provides
@Singleton
protected Set<String> bindIsoCodes(@Named(value="jclouds.iso3166-codes")
                                                      String in)

bindApi

@Provides
@Singleton
protected String bindApi(@Named(value="jclouds.api")
                                            String in)

bindApiVersion

@Provides
@Singleton
protected String bindApiVersion(@Named(value="jclouds.api-version")
                                                   String in)

bindBuildVersion

@Provides
@Singleton
protected String bindBuildVersion(@Named(value="jclouds.build-version")
                                                     String in)

bindIdentity

@Provides
@Singleton
protected String bindIdentity(@Named(value="jclouds.identity")
                                                 String in)

bindCredential

@Provides
@Singleton
@Nullable
protected String bindCredential(ValueOfConfigurationKeyOrNull config)

bindProviderCredentials

@Provides
@Singleton
protected Credentials bindProviderCredentials(String identity,
                                                                 @Nullable
                                                                 String credential)

bindConfigurations

protected void bindConfigurations()
Specified by:
bindConfigurations in class org.nnsoft.guice.rocoto.configuration.ConfigurationModule


Copyright © 2009-2012 jclouds. All Rights Reserved.