org.jclouds.chef.test.config
Class TransientChefApiModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.chef.test.config.TransientChefApiModule
All Implemented Interfaces:
com.google.inject.Module

public class TransientChefApiModule
extends com.google.inject.AbstractModule


Constructor Summary
TransientChefApiModule()
           
 
Method Summary
protected  void configure()
           
 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()
           
 
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

TransientChefApiModule

public TransientChefApiModule()
Method Detail

configure

protected void configure()
Specified by:
configure in class com.google.inject.AbstractModule

supplyKey

@Provides
@Singleton
public com.google.common.base.Supplier<PrivateKey> supplyKey()

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


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