public class OpenStackAuthenticationModule
extends com.google.inject.AbstractModule
Modifier and Type | Class and Description |
---|---|
static class |
OpenStackAuthenticationModule.GetAuthenticationResponse |
Constructor and Description |
---|
OpenStackAuthenticationModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
com.google.common.cache.LoadingCache<Credentials,AuthenticationResponse> |
provideAuthenticationResponseCache(com.google.common.base.Function<Credentials,AuthenticationResponse> getAuthenticationResponse) |
protected com.google.common.base.Supplier<AuthenticationResponse> |
provideAuthenticationResponseSupplier(com.google.common.cache.LoadingCache<Credentials,AuthenticationResponse> cache,
com.google.common.base.Supplier<Credentials> creds) |
protected com.google.common.base.Supplier<String> |
provideAuthenticationTokenCache(com.google.common.base.Supplier<AuthenticationResponse> supplier)
borrowing concurrency code to ensure that caching takes place properly
|
protected com.google.common.base.Supplier<Date> |
provideCacheBusterDate() |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected void configure()
configure
in class com.google.inject.AbstractModule
@Provides @Singleton protected com.google.common.base.Supplier<String> provideAuthenticationTokenCache(com.google.common.base.Supplier<AuthenticationResponse> supplier) throws InterruptedException, ExecutionException, TimeoutException
@Provides @Singleton public com.google.common.cache.LoadingCache<Credentials,AuthenticationResponse> provideAuthenticationResponseCache(com.google.common.base.Function<Credentials,AuthenticationResponse> getAuthenticationResponse)
@Provides @Singleton protected com.google.common.base.Supplier<AuthenticationResponse> provideAuthenticationResponseSupplier(com.google.common.cache.LoadingCache<Credentials,AuthenticationResponse> cache, com.google.common.base.Supplier<Credentials> creds)
@Provides @Singleton protected com.google.common.base.Supplier<Date> provideCacheBusterDate()
Copyright © 2009-2013 jclouds. All Rights Reserved.