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() |
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 properly
|
protected com.google.common.base.Supplier<Auth> |
provideAuthSupplier(com.google.common.cache.LoadingCache<Credentials,Auth> cache,
com.google.common.base.Supplier<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 protected com.google.common.cache.LoadingCache<Credentials,Auth> provideAuthCache(AuthenticationServiceModule.GetAuth getAuth, long sessionInterval)
@Provides @Singleton protected com.google.common.base.Supplier<Auth> provideAuthSupplier(com.google.common.cache.LoadingCache<Credentials,Auth> cache, com.google.common.base.Supplier<Credentials> creds)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.