public class AuthenticationServiceModule
extends com.google.inject.AbstractModule
Modifier and Type | Class and Description |
---|---|
static class |
AuthenticationServiceModule.GetAuth |
Constructor and Description |
---|
AuthenticationServiceModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
com.google.common.cache.LoadingCache<Credentials,Auth> |
provideAuthCache(com.google.common.base.Function<Credentials,Auth> getAuth) |
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<Credentials,Auth> cache,
Credentials creds) |
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<Auth> supplier) throws InterruptedException, ExecutionException, TimeoutException
@Provides @Singleton public com.google.common.cache.LoadingCache<Credentials,Auth> provideAuthCache(com.google.common.base.Function<Credentials,Auth> getAuth)
@Provides @Singleton protected com.google.common.base.Supplier<Auth> provideAuthSupplier(com.google.common.cache.LoadingCache<Credentials,Auth> cache, Credentials creds)
Copyright © 2009-2012 jclouds. All Rights Reserved.