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() |
protected com.google.common.base.Supplier<String> |
guiceProvideAuthenticationTokenCache(com.google.common.base.Supplier<AuthenticationResponse> supplier) |
protected com.google.common.base.Supplier<Date> |
guiceProvideCacheBusterDate() |
com.google.common.cache.LoadingCache<Credentials,AuthenticationResponse> |
provideAuthenticationResponseCache(OpenStackAuthenticationModule.GetAuthenticationResponse 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 final com.google.common.base.Supplier<String> guiceProvideAuthenticationTokenCache(com.google.common.base.Supplier<AuthenticationResponse> supplier) throws InterruptedException, ExecutionException, TimeoutException
protected com.google.common.base.Supplier<String> provideAuthenticationTokenCache(com.google.common.base.Supplier<AuthenticationResponse> supplier) throws InterruptedException, ExecutionException, TimeoutException
@Provides @Singleton public final com.google.common.cache.LoadingCache<Credentials,AuthenticationResponse> provideAuthenticationResponseCache(OpenStackAuthenticationModule.GetAuthenticationResponse getAuthenticationResponse)
@Provides @Singleton protected final 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 final com.google.common.base.Supplier<Date> guiceProvideCacheBusterDate()
protected com.google.common.base.Supplier<Date> provideCacheBusterDate()
Copyright © 2009-2021 The Apache Software Foundation. All Rights Reserved.