@Inject public AuthenticateRequest(@Authentication Supplier<String> authTokenProvider) { this.authTokenProvider = authTokenProvider; }
@Inject public AuthenticateRequest(@Authentication Supplier<String> authTokenProvider) { this.authTokenProvider = authTokenProvider; }
@Inject public AuthenticateRequest(@Authentication Supplier<String> authTokenProvider) { this.authTokenProvider = authTokenProvider; }
@Inject public AuthenticateRequest(@Authentication Supplier<String> authTokenProvider) { this.authTokenProvider = authTokenProvider; }
@Inject public AuthenticateRequest(@Authentication Supplier<String> authTokenProvider) { this.authTokenProvider = authTokenProvider; }
/** * borrowing concurrency code to ensure that caching takes place properly */ @Provides @Singleton @Authentication protected final Supplier<String> provideAuthenticationTokenCache(final Supplier<Access> supplier) throws InterruptedException, ExecutionException, TimeoutException { return new Supplier<String>() { @Override public String get() { return supplier.get().getToken().getId(); } }; }
/** * borrowing concurrency code to ensure that caching takes place properly */ @Provides @Singleton @Authentication protected Supplier<String> provideAuthenticationTokenCache(final Supplier<Access> supplier) throws InterruptedException, ExecutionException, TimeoutException { return new Supplier<String>() { public String get() { return supplier.get().getToken().getId(); } }; }
/** * borrowing concurrency code to ensure that caching takes place properly */ @Provides @Singleton @Authentication protected Supplier<String> provideAuthenticationTokenCache(final Supplier<Access> supplier) throws InterruptedException, ExecutionException, TimeoutException { return new Supplier<String>() { public String get() { return supplier.get().getToken().getId(); } }; }
/** * borrowing concurrency code to ensure that caching takes place properly */ @Provides @Singleton @Authentication protected Supplier<String> provideAuthenticationTokenCache(final Supplier<Access> supplier) throws InterruptedException, ExecutionException, TimeoutException { return new Supplier<String>() { public String get() { return supplier.get().getToken().getId(); } }; }
/** * borrowing concurrency code to ensure that caching takes place properly */ @Provides @Singleton @Authentication protected final Supplier<String> provideAuthenticationTokenCache(final Supplier<Access> supplier) throws InterruptedException, ExecutionException, TimeoutException { return new Supplier<String>() { @Override public String get() { return supplier.get().getToken().getId(); } }; }