jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject Re: [jclouds/jclouds-labs] JCLOUDS-1005: Backblaze B2 skeleton and bucket ops (#270)
Date Thu, 26 May 2016 18:23:26 GMT
> +   @Override
> +   protected void configure() {
> +      super.configure();
> +      bind(RequestAuthorization.class).in(Scopes.SINGLETON);
> +   }
> +
> +   @Override
> +   protected void bindErrorHandlers() {
> +      bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(ParseB2ErrorFromJsonContent.class);
> +      bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(ParseB2ErrorFromJsonContent.class);
> +      bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(ParseB2ErrorFromJsonContent.class);
> +   }
> +
> +   @Provides
> +   @Singleton
> +   static Supplier<Authorization> provideAuthorizationCache(final B2Api b2Api)
{

I made some changes to the authorization cache to support upcoming commits.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/270/files/2a136008e73694853e887a138883638321393bdd#r64795475
Mime
View raw message