org.jclouds.openstack.keystone.v1_1.config
Class AuthenticationServiceModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.openstack.keystone.v1_1.config.AuthenticationServiceModule
All Implemented Interfaces:
com.google.inject.Module

public class AuthenticationServiceModule
extends com.google.inject.AbstractModule


Nested Class Summary
static class AuthenticationServiceModule.GetAuth
           
 
Constructor Summary
AuthenticationServiceModule()
           
 
Method Summary
protected  void configure()
           
protected  com.google.common.cache.LoadingCache<org.jclouds.domain.Credentials,Auth> provideAuthCache(AuthenticationServiceModule.GetAuth getAuth, long sessionInterval)
           
protected  com.google.common.base.Supplier<String> provideAuthenticationTokenCache(com.google.common.base.Supplier<Auth> supplier)
          borrowing concurrency code to ensure that caching takes place properly
protected  com.google.common.base.Supplier<Auth> provideAuthSupplier(com.google.common.cache.LoadingCache<org.jclouds.domain.Credentials,Auth> cache, com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds)
           
 
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

AuthenticationServiceModule

public AuthenticationServiceModule()
Method Detail

configure

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

provideAuthenticationTokenCache

@Provides
@Singleton
protected com.google.common.base.Supplier<String> provideAuthenticationTokenCache(com.google.common.base.Supplier<Auth> supplier)
                                                                           throws InterruptedException,
                                                                                  ExecutionException,
                                                                                  TimeoutException
borrowing concurrency code to ensure that caching takes place properly

Throws:
InterruptedException
ExecutionException
TimeoutException

provideAuthCache

@Provides
@Singleton
protected com.google.common.cache.LoadingCache<org.jclouds.domain.Credentials,Auth> provideAuthCache(AuthenticationServiceModule.GetAuth getAuth,
                                                                                                                        long sessionInterval)

provideAuthSupplier

@Provides
@Singleton
protected com.google.common.base.Supplier<Auth> provideAuthSupplier(com.google.common.cache.LoadingCache<org.jclouds.domain.Credentials,Auth> cache,
                                                                                       com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds)


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