Class AuthenticationServiceModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- 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
Nested Classes Modifier and Type Class Description static class
AuthenticationServiceModule.GetAuth
-
Constructor Summary
Constructors Constructor Description AuthenticationServiceModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure()
protected com.google.common.cache.LoadingCache<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 properlyprotected com.google.common.base.Supplier<Auth>
provideAuthSupplier(com.google.common.cache.LoadingCache<Credentials,Auth> cache, com.google.common.base.Supplier<Credentials> creds)
-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Method Detail
-
configure
protected void configure()
- Overrides:
configure
in classcom.google.inject.AbstractModule
-
provideAuthenticationTokenCache
@Provides @Singleton protected final 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
-
provideAuthCache
@Provides @Singleton protected final com.google.common.cache.LoadingCache<Credentials,Auth> provideAuthCache(AuthenticationServiceModule.GetAuth getAuth, long sessionInterval)
-
provideAuthSupplier
@Provides @Singleton protected final com.google.common.base.Supplier<Auth> provideAuthSupplier(com.google.common.cache.LoadingCache<Credentials,Auth> cache, com.google.common.base.Supplier<Credentials> creds)
-
-