org.jclouds.rest.config
Class CredentialStoreModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.rest.config.CredentialStoreModule
All Implemented Interfaces:
com.google.inject.Module

@Beta
public class CredentialStoreModule
extends com.google.inject.AbstractModule

Author:
Adrian Cole

Nested Class Summary
static class CredentialStoreModule.CredentialsFromJsonInputStream
           
static class CredentialStoreModule.CredentialsToJsonInputStream
           
 
Constructor Summary
CredentialStoreModule()
           
CredentialStoreModule(Map<String,InputStream> backing)
           
 
Method Summary
protected  void configure()
           
protected  Map<String,Credentials> provideCredentialStore(Map<String,InputStream> backing, com.google.common.base.Function<Credentials,InputStream> credentialsSerializer, com.google.common.base.Function<InputStream,Credentials> credentialsDeserializer)
           
 
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

CredentialStoreModule

public CredentialStoreModule(Map<String,InputStream> backing)

CredentialStoreModule

public CredentialStoreModule()
Method Detail

configure

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

provideCredentialStore

@Provides
@Singleton
protected Map<String,Credentials> provideCredentialStore(Map<String,InputStream> backing,
                                                                            com.google.common.base.Function<Credentials,InputStream> credentialsSerializer,
                                                                            com.google.common.base.Function<InputStream,Credentials> credentialsDeserializer)


Copyright © 2009-2011 jclouds. All Rights Reserved.