org.jclouds.chef.config
Class BaseChefHttpApiModule<S>

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.rest.config.RestModule
          extended by org.jclouds.rest.config.HttpApiModule<S>
              extended by org.jclouds.chef.config.BaseChefHttpApiModule<S>
All Implemented Interfaces:
com.google.inject.Module
Direct Known Subclasses:
ChefHttpApiModule

public abstract class BaseChefHttpApiModule<S>
extends org.jclouds.rest.config.HttpApiModule<S>

Configures the Chef connection.


Field Summary
 
Fields inherited from class org.jclouds.rest.config.HttpApiModule
api
 
Fields inherited from class org.jclouds.rest.config.RestModule
authException, URI_SUPPLIER_TYPE
 
Constructor Summary
BaseChefHttpApiModule()
           
 
Method Summary
protected  void bindErrorHandlers()
           
protected  void bindRetryHandlers()
           
protected  String provideTimeStamp(com.google.common.base.Supplier<String> cache)
           
 com.google.common.base.Optional<PrivateKey> provideValidatorCredential(org.jclouds.crypto.Crypto crypto, com.google.inject.Injector injector)
           
 com.google.common.base.Optional<String> provideValidatorName(com.google.inject.Injector injector)
           
 com.google.common.base.Supplier<PrivateKey> supplyKey(com.google.common.cache.LoadingCache<org.jclouds.domain.Credentials,PrivateKey> keyCache, com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds)
           
 
Methods inherited from class org.jclouds.rest.config.HttpApiModule
configure
 
Methods inherited from class org.jclouds.rest.config.RestModule
installLocations
 
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

BaseChefHttpApiModule

public BaseChefHttpApiModule()
Method Detail

provideTimeStamp

@Provides
protected String provideTimeStamp(com.google.common.base.Supplier<String> cache)

supplyKey

@Provides
@Singleton
public com.google.common.base.Supplier<PrivateKey> supplyKey(com.google.common.cache.LoadingCache<org.jclouds.domain.Credentials,PrivateKey> keyCache,
                                                                                com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds)

provideValidatorName

@Provides
@Singleton
public com.google.common.base.Optional<String> provideValidatorName(com.google.inject.Injector injector)

provideValidatorCredential

@Provides
@Singleton
public com.google.common.base.Optional<PrivateKey> provideValidatorCredential(org.jclouds.crypto.Crypto crypto,
                                                                                                 com.google.inject.Injector injector)
                                                                       throws InvalidKeySpecException,
                                                                              IOException
Throws:
InvalidKeySpecException
IOException

bindErrorHandlers

protected void bindErrorHandlers()
Overrides:
bindErrorHandlers in class org.jclouds.rest.config.HttpApiModule<S>

bindRetryHandlers

protected void bindRetryHandlers()
Overrides:
bindRetryHandlers in class org.jclouds.rest.config.HttpApiModule<S>


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.